Skip to content

TapResearch/react-native-integration-demo

Repository files navigation

TapResearch React Native Integration Demo

Build your own app with TapResearch

  • Create a new react native App
  • Make sure the project is a native project link
  • Import the TapResearch React Native SDK (already done for you here)
npm i react-native-tapresearch -S
react-native link react-native-tapresearch # only if you are using react-native < 0.60 
  • Pull / Download the repo and copy the files to the new project
  • cp .env.example .env, then
    • If you forget to do this, you will need to clean build your project again after adding the .env file
  • Grab your app api token from the Supplier Dashboard and replace the API_TOKEN variable in .env
  • You can either set the static username for testing in the .env file, or you can set it in the code. In a real app, this would be dynamic based on the user's login.
  • In build.gradle of your android app add the following lines (see here for example)
    • This is done already for you in this codebase
maven { url "https://artifactory.tools.tapresearch.io/artifactory/tapresearch-android-sdk/" }`
  • In the command line execute react-native run-android / react-native run-ios

TapResearch React Native SDK integration guide.

About

TapResearch React Native integration Demo

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5