This is the JavaScript and React Native source code for FLASH mobile wallet.
You will need Node, Watchman, React Native CLI, Xcode, and CocoaPods.
We recommend installing Node, Yarn, and Watchman using Homebrew. Run the following commands in a Terminal after installing Homebrew:
$ brew install node
$ brew install watchman
If you have already installed Node on your system, make sure it is Node 10.11.0 or newer.
Node comes with npm, which lets you install the React Native command line interface. Run the following command in a Terminal:
$ npm install -g react-native-cli
If you get an error like Cannot find module 'npmlog'
, try installing npm directly: curl -0 -L https://npmjs.org/install.sh | sudo sh
.
CocoaPods is built with Ruby and is installable with the default Ruby available on macOS. We recommend you use the default ruby.
$ sudo gem install cocoapods
git clone https://github.com/flash-coin/flash-mobileapp.git FLASHWallet
Run the following commands in a Terminal at root of source directory:
cd FLASHWallet
npm install
cd ios
pod install
- Rename
.env.sample
to.env
file for developing at root of source directory. - Export push notification config files
google-services.json
andGoogleService-Info.plist
from firebase console.
- Android - put
google-services.json
file into android/app directory - iOS - put
GoogleService-Info.plist
file into ios/ directory
Run the following command in a Terminal at root of source directory:
$ react-native run-ios // for iOS
OR
$ react-native run-android // for Android
react-native run-ios
or react-native run-android
is just one way to run your app. You can also run it directly from within Xcode and Android Studio respectively or Nuclide. You can refer React Native Get Started guide for more info.
-
double-conversion errors
orconfig.h
file not found.It will fixed by following this steps. Read more
- Close Xcode.
- Run the following commands in a Terminal at root of source directory:
cd node_modules/react-native/third-party/glog-0.3.4/ && ../../scripts/ios-configure-glog.sh && cd ../../../../
- Open Xcode and try building the Project.
-
error: Build input file cannot be found: 'node_modules/react-native/Libraries/WebSocket/libfishhook.a'
Remove and add again
libfishhook.a
from Xcode and the path issue will resolve. Read more
Check the issues and pull requests to see if the idea or bug you want to share about is already present. If you don't see it, do one of the following:
- If it is a small change, just fork the project and create a pull request.
- If it is major, start by opening an issue.
If you're familiar with React Native, and you'd like to see this project progress, please consider contributing.
Please see LICENSE for more info.