Skip to content

Demo app integrating Gigya with React Native via Native Bridge - ⛔ [DEPRECATED] Active at https://github.com/gigya/ReactNative-Demo

Notifications You must be signed in to change notification settings

alejandromcsd/gigya-react-native

Repository files navigation

⛔ [DEPRECATED] Active at https://github.com/gigya/ReactNative-Demo

Gigya Integration with React Native

About this project

This is a simple demo to illustrate Gigya Integration with React Native. Integration is done via Native Modules. The idea is to create a React RCTBridgeModule for Gigya's available Mobile SDKs (iOS and Android), and use this bridge to communicate between React Native (JS) and Native (SDKs).

TODOS

  • Bridge for Android (currently iOS Bridge only)

Requirements

brew install node
brew install watchman
npm install -g react-native-cli

For more info click here

Available Scripts

If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing.

npm start

Runs your app in development mode.

Open it in the Expo app on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.

Sometimes you may need to reset or clear the React Native packager's cache. To do so, you can pass the --reset-cache flag to the start script:

npm start -- --reset-cache
# or
yarn start -- --reset-cache

npm test

Runs the jest test runner on your tests.

npm run ios

Like npm start, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.

npm run android

Like npm start, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see React Native docs for detailed setup). We also recommend installing Genymotion as your Android emulator. Once you've finished setting up the native build environment, there are two options for making the right copy of adb available to Create React Native App:

Using Android Studio's adb
  1. Make sure that you can run adb from your terminal.
  2. Open Genymotion and navigate to Settings -> ADB. Select “Use custom Android SDK tools” and update with your Android SDK directory.
Using Genymotion's adb
  1. Find Genymotion’s copy of adb. On macOS for example, this is normally /Applications/Genymotion.app/Contents/MacOS/tools/.
  2. Add the Genymotion tools directory to your path (instructions for Mac, Linux, and Windows).
  3. Make sure that you can run adb from your terminal.

Bootstrapped from React Native

This project was bootstrapped with Create React Native App.

About

Demo app integrating Gigya with React Native via Native Bridge - ⛔ [DEPRECATED] Active at https://github.com/gigya/ReactNative-Demo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published