React Native
Setting up Quirks for use in React Native applications.
If you want to use Quirks on React Native, after completing the basic installation process defined here, you will need to follow these steps to get started.
Installation
You will also need some additional packages to help with storage and polyfills:
If you are using our default configuration, you will also need:
If you are using version v1 of yarn you must manually install the peer dependencies, as this version of yarn does not automatically resolve them.
Setup
Add the Quirks setup import to your index.ts
or App.tsx
.
It must be included in a boot file to ensure that dependencies are
correctly imported.
Add babel preset:
Generate config
The generateConfig
utility simplifies integration with React Native by automatically creating a setup with all the basic configurations for RN. This setup is optional and can be customized if needed.
Android Fix
There is currently a bug in the react-native-quick-crypto library (which has been recently fixed but not yet released in a new build). To address this issue, you need to import the following configuration into your build.gradle
.
Starter
A starter is available for easy integration here.