This project is using different polyfills to make it work on the browser and on the mobile devices. If you want to reuse them, you need to copy them manually to your workspace
- This project uses react-native-polyfill-globals
- This project uses rn-nodeify
Also, please check polyfills in the shim.js
, metro.config.js
and package.json
files.
To make this repository work as expected, you will need to install dfx and run local canister, or deploy canister to the mainnet (or your custom dfx network).
Please follow the instructions in the dfinity docs to install dfx and start local canister. And follow the instructions on how to set up canister from dfinity/examples repository
-
Install the shared React Native dependencies (
React Native CLI
, notExpo CLI
) -
Install cocoapods by running:
sudo gem install cocoapods
-
Clone this repo:
git clone https://github.com/kuchmenko/RNDfinity
- Install yarn dependencies:
This command will install yarn dependencies, iOS Pods and patch-packages
yarn fullInstall
- Run the app: (If you have some problems with CLI run with Xcode)
yarn ios
- Run the app on Android:
yarn android