Suggestions

close search

Install stringee-react-rative package

  1. In your terminal (Command Prompt in Windows), change into your React Native project's directory
  2. In your terminal (Command Prompt in Windows), run $ npm install https://github.com/stringeecom/stringee-react-native-chat --save

iOS

Setup iOS SDK
  1. Download iOS SDK
  2. Unzip the archive to your project home directory
  3. Open your application's Xcode project.
  4. If you don't have a Frameworks group in your project, create one.
  5. Open your project home directory using Finder.
  6. Drag the Stringee.framework into the Frameworks group of Xcode's Project Navigator. In the displayed dialog, choose "Create groups" and select "Copy items if needed".
  7. Add the following libraries and frameworks to Target -> "Build Phases" -> "Link Binary With Libraries": libstdc++.tbd, libicucore.tbd, GLKit.framework, AudioToolBox.framework, VideoToolBox.framework.
  8. In the "Build Settings" tab -> "Enable bitcode" select "NO"
Link stringee-react-native
  1. Open Your project -> node_modules -> stringee-react-native -> iOS using Finder.
  2. Drag the RNStringee.xcodeproj into the Libraries folder of Xcode's Project Navigator
  3. Add libRNStringee.a file to "Build Phases" -> "Link Binary With Libraries"
  4. Add $(SRCROOT)/../../../ios/ to RNStringee.xcodeproj -> Build Settings -> Framework search paths
  5. Add $(SRCROOT)/../../../ios/Stringee.framework/Headers to RNStringee.xcodeproj -> Build Settings -> Header search paths

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java    - Add import com.stringeereactnative.RNStringeeReactPackage; to the imports at the top of the file    - Add new RNStringeePackage() to the list returned by the getPackages() method
  2. Append the following lines to android/settings.gradle:
    include ':stringee-react-native'
    project(':stringee-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/stringee-react-native/android')
  3. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':stringee-react-native')