nabla-studio / react-native-template-cosmjs

React Native template for a quick start with TypeScript and CosmJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🚀 React Native Template CosmJS

Documentation Maintenance License: MIT

React Native template for a quick start with TypeScript and CosmJS.

This template is based on:

We made this repo to solve the following issue:

This was made possible thanks to the 0.70.0 release of React Native, which solved the compatibility problems related to BigInt:

Requirements

  • React Native >= 0.70.0
  • Ruby >= 3.1.0
  • Gradle >= 7.5.1

Features

  • Elegant usage directly within the React Native CLI
  • Consistent with the default React Native template
  • Minimal additional dependencies
  • Default setup for CosmJS compatibility

⚙️ Usage

  1. Use RN CLI and clone the project
npx react-native init MyApp --template https://github.com/nabla-studio/react-native-template-cosmjs
  1. Go to the project directory
  cd MyApp
  1. Install dependencies
  yarn setup
  1. a. Start the iOS server
  yarn ios
  1. b. Start the Android server
  yarn android

iOS Note

On macOS you may encounter some problems for the iOS build, to fix it follow the steps below:

  1. Go to iOS directory
  cd ios
  1. Deintegrate pod installation
  pod deintegrate
  1. Reinstall pod dependencies
  pod install

⚠️ React Native CLI

This template only works with the new CLI. Make sure you have uninstalled the legacy react-native-cli first (npm uninstall -g react-native-cli) for the below command to work. If you wish to not use npx, you can also install the new CLI globally (npm i -g @react-native-community/cli or yarn global add @react-native-community/cli).

If you tried the above and still get the react-native-template-cosmjs: Not found error, please try adding the --ignore-existing flag to force npx to ignore any locally installed versions of the CLI and use the latest.

Further information can be found here: https://github.com/react-native-community/cli#about

💻 Contributing

Contributions are very welcome. Please check out the contributing document.

🆘 Support

For support or suggestions, you can create a new issue

🧪 Tests

The template was tested on:

  • MacBook pro (13-inch, M1, 2020) - macOS Monterey 12.2.1
  • MacBook pro (13-inch, M1, 2020) - macOS Monterey 12.6

Versions of iOS tested:

  • 16.0
  • 15.4
  • 14.0.1

Version of Android tested:

  • API 33

🔏 License

Copyright © 2022 nabla

This project is licensed by MIT License.

About

React Native template for a quick start with TypeScript and CosmJS.

License:Other


Languages

Language:Java 41.6%Language:C++ 19.4%Language:Objective-C++ 11.8%Language:Objective-C 6.4%Language:JavaScript 5.8%Language:TypeScript 5.8%Language:Ruby 4.3%Language:Shell 2.5%Language:Starlark 1.6%Language:CMake 0.7%