3.2.5 • Published 8 months ago

@ada-support/react-native-sdk v3.2.5

Weekly downloads
660
License
ISC
Repository
-
Last release
8 months ago

Ada React Native SDK

Go here for client-facing docs.

Prerequisites

You will need to have the below installed in order to run/compile the code

  • Java JDK - 17.x.x
  • Java - 8
  • XCode - Latest (get this from the App Store)
    • If you installed xCode command line tools before xCode you may need to run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
  • Android Studio - Latest
  • Node 18.x.x
  • Ensure you download an iOS and/or an Android simulator in xCode/Android Studio and have them running.

Add the following to your PATH in bash (.profile) or zsh (.zshrc)

export ANDROID_HOME="/Users/<your mac user folder here>/Library/Android/sdk"
PATH="$PATH:${ANDROID_HOME}/platform-tools/"

Setting up your local environment (first run)

  1. cd into the sample directory: cd sample
  2. Install node_modules via yarn: yarn
  3. cd into the ios directory and run bundle install. This installs the Bundler
  4. Install needed Cocoapods via the Bundler: bundle exec pod install
  5. Run either yarn run ios or yarn run android to make sure everything is working

Local Development

If you want to make changes to the actual NPM module and test them - follow the below steps for iOS or Android

Local development of the NPM Module for Android

  1. To run the application on a simulated Android device, open Android Studio and start an AVD preferably one running Android 11 (API 30)
  2. In a terminal navigate to the sample folder, run yarn run android:with-install to install all packages and install the module locally. It with automatically start up the simulator and install the app for you.

Local development of the NPM Module for iOS

  1. In a terminal navigate to the sample folder and run yarn install
  2. In another terminal, navigate to sample/ios and run bundle exec pod install
  3. Once finished, run yarn run ios:with-install. It with automatically start up the simulator and install the app for you.

Note

If you are having problems with yarn install make sure you're on Node 18.x.x

Deploying to production

  1. Update the version number in the package.json file by incrementing the version value by 1 on the least significant value (eg. if version is 0.0.1, update it to 0.0.2)

  2. Get your PR reviewed and then squash and merge it to master. Merging your PR will automatically trigger the deploy to npm

3.2.5

8 months ago

3.2.4

11 months ago

3.2.3

11 months ago

3.2.2

2 years ago

3.2.1

2 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.3.0

3 years ago

2.3.1

3 years ago

2.2.0

3 years ago

1.2.0

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.4

5 years ago

0.0.1

5 years ago