-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from celo-org/therealharpaljadeja/react-nativ…
…e-without-expo-wcv2 React Native (without Expo) WalletConnect V2
- Loading branch information
Showing
69 changed files
with
2,939 additions
and
2,959 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
node_modules | ||
.env | ||
packages/*/.env | ||
packages/*/.env.* | ||
|
||
# IntelliJ project files | ||
*.iml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ENV_PROJECT_ID= | ||
ENV_RELAY_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-91.1 KB
...ges/react-native-app-without-expo/android/app/src/main/assets/fonts/SpaceMono-Regular.ttf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...re/components/MainComponentsRegistry.java → ...re/components/MainComponentsRegistry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/react-native-app-without-expo/android/app/src/main/res/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<resources> | ||
<string name="app_name">reactNativeAppWithoutExpo</string> | ||
<string name="app_name">Celo Composer</string> | ||
</resources> |
9 changes: 0 additions & 9 deletions
9
packages/react-native-app-without-expo/android/link-assets-manifest.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "reactNativeAppWithoutExpo", | ||
"name": "CeloComposer", | ||
"displayName": "Celo Composer" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
module.exports = { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
plugins: [ | ||
['module:react-native-dotenv'], | ||
[ | ||
'@babel/plugin-transform-react-jsx', | ||
{ | ||
runtime: 'automatic', | ||
}, | ||
], | ||
], | ||
}; | ||
}; |
13 changes: 13 additions & 0 deletions
13
packages/react-native-app-without-expo/components/AccountAddress.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {useContext} from 'react'; | ||
import {ThemeContext} from '../context/ThemeProvider'; | ||
import {Text} from './Themed'; | ||
import {useWeb3Modal} from '@web3modal/react-native'; | ||
|
||
const AccountAddress = () => { | ||
const {styles} = useContext(ThemeContext); | ||
const {address} = useWeb3Modal(); | ||
|
||
return <Text style={styles.externalLink}>{address}</Text>; | ||
}; | ||
|
||
export default AccountAddress; |
20 changes: 20 additions & 0 deletions
20
packages/react-native-app-without-expo/components/AccountBalance.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import {Text, View} from './Themed'; | ||
import {useWeb3Modal} from '@web3modal/react-native'; | ||
import {useEffect, useState} from 'react'; | ||
|
||
const AccountBalance = () => { | ||
const [balances, setBalances] = useState<any>(null); | ||
const {address} = useWeb3Modal(); | ||
|
||
return ( | ||
<View> | ||
{balances | ||
? Object.keys(balances).map(key => ( | ||
<Text>{`${key}: ${balances[key]}`}</Text> | ||
)) | ||
: null} | ||
</View> | ||
); | ||
}; | ||
|
||
export default AccountBalance; |
Oops, something went wrong.