Skip to content

Commit

Permalink
react native example: add wallet connect example
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysu committed Apr 25, 2024
1 parent 8d4e958 commit a83b824
Show file tree
Hide file tree
Showing 21 changed files with 4,503 additions and 1,353 deletions.
3 changes: 3 additions & 0 deletions examples/react-native/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WALLET_CONNECT_PROJECT_ID=
ENVIRONMENT=production
# ENVIRONMENT=development
17 changes: 17 additions & 0 deletions examples/react-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ This is a new [**React Native**](https://reactnative.dev) project, bootstrapped

> **Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
## Step 0: Install the Native Dependencies

### For iOS

Install the native dependencies using CocoaPods:

```bash
# using npm
npm run pod:install

# OR using Yarn
yarn pod:install

# OR using pnpm
pnpm pod:install
```

## Step 1: Start the Metro Server

First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native.
Expand Down
11 changes: 11 additions & 0 deletions examples/react-native/ios/NativeLens/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>nativelens</string>
</array>
<key>CFBundleURLName</key>
<string>com.yourcompany.nativelens</string>
</dict>
</array>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
2 changes: 1 addition & 1 deletion examples/react-native/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ target 'NativeLens' do
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => flipper_config,
# :flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
Expand Down
Loading

0 comments on commit a83b824

Please sign in to comment.