imchintan / flash-mobileapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub license FOSSA Status DeepScan grade Build Status

FLASH - Mobile App

This is the JavaScript and React Native source code for FLASH mobile wallet.

Installation

You will need Node, Watchman, React Native CLI, Xcode, and CocoaPods.

Node, Watchman

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.

React Native CLI

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

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 Checkout

git clone https://github.com/flash-coin/flash-mobileapp.git FLASHWallet

Dependencies

Run the following commands in a Terminal at root of source directory:

cd FLASHWallet
npm install
cd ios
pod install

Configure

  1. Rename .env.sample to .env file for developing at root of source directory.
  2. Export push notification config files google-services.json and GoogleService-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

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.

For Xcode 10 issue

  • double-conversion errors or config.h file not found.

    It will fixed by following this steps. Read more

    1. Close Xcode.
    2. 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 ../../../../
    1. 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

Known Issues

Reporting Issues

Bugs | New Features

Contributing

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.

Help Wanted!

If you're familiar with React Native, and you'd like to see this project progress, please consider contributing.

License

Please see LICENSE for more info.

About

License:MIT License


Languages

Language:JavaScript 96.3%Language:Objective-C 3.0%Language:Java 0.4%Language:Ruby 0.1%Language:Python 0.1%