Firma Station for Mobile



How to build and run firma-station-mobile

1. install

  1. Create the project via git clone.
  2. Create a new project and copy the following files from a project created as a clone.
  • src
  • react-native.config.js
  • tsconfig.json
  • babel.config.js
  1. Connect fonts via link.

  
  react-native link  
  
  1. Install the following modules.

  
  yarn add react-native-gesture-handler react-navigation react-native-safe-area-context react-native-screens @react-native-community/masked-view @react-navigation/native @react-navigation/stack @react-native-clipboard/clipboard react-native-status-bar-height react-native-iphone-x-helper react-native-toast-message asyncstorage-down moment @react-navigation/bottom-tabs [email protected] react-native-keychain @apollo/client graphql
  

  
  yarn add --dev babel-plugin-module-resolver
  yarn add react-native-vector-icons
  yarn add --dev @types/react-native-vector-icons
  
  1. Add the following codes.

  
  // android/src/build.gradle
  apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

  // ios/Podfile
  // below the target.
  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
  

  // ios/PROJECT_NAME/Info.plist
  // between UIAppFons array

  <string>AntDesign.ttf</string>
  <string>Entypo.ttf</string>
  <string>EvilIcons.ttf</string>
  <string>Feather.ttf</string>
  <string>FontAwesome.ttf</string>
  <string>FontAwesome5_Brands.ttf</string>
  <string>FontAwesome5_Regular.ttf</string>
  <string>FontAwesome5_Solid.ttf</string>
  <string>Foundation.ttf</string>
  <string>Ionicons.ttf</string>
  <string>MaterialIcons.ttf</string>
  <string>MaterialCommunityIcons.ttf</string>
  <string>SimpleLineIcons.ttf</string>
  <string>Octicons.ttf</string>
  <string>Zocial.ttf</string>
  1. Proceed in the following order.

  
  npm i @firmachain/firma-js
  npm i --save react-native-crypto
  npm i --save react-native-randombytes

  cd ios
  pod install
  cd ..

  npm i --save-dev tradle/rn-nodeify
  ./node_modules/.bin/rn-nodeify --hack --install
  
  1. Imports shim.js to index.js.

2. Run

  
  npx react-native run-android
  npx react-native run-ios
  

GitHub

View Github