Skip to content

mrminhhuy/stringee-react-native

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stringee-react-native

Getting started

$ npm install stringee-react-native --save

Installation

iOS

Note Please make sure to have CocoaPods on your computer.

  1. In you terminal, change into your ios directory.

  2. Create a pod file by running: pod init.

  3. Add the following to your pod file:

    platform :ios, '8.0'

    target '<YourProjectName>' do
  		node_modules_path = '../node_modules'

  		pod 'yoga', path: "#{node_modules_path}/react-native/ReactCommon/yoga/yoga.podspec"
  		pod 'React', path: "#{node_modules_path}/react-native", :subspecs => ['DevSupport', 'RCTNetwork']

  		pod 'RNStringee', path: "#{node_modules_path}/stringee-react-native/ios"
    end

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        if target.name == "React"
          target.remove_from_project
        end
      end
    end

Note If you use React Native >= 0.59, update platform :ios, '8.0' to platform :ios, '9.0' 4. Now run, pod install

  1. Open XCode

  2. Open <YourProjectName>.xcworkspace file in XCode. This file can be found in the ios folder of your React Native project.

  3. In the "Build Settings" tab -> "Other linker flags" add "$(inherited)" flag.

  4. In the "Build Settings" tab -> "Enable bitcode" select "NO".

  5. Right-click the information property list file (Info.plist) and select Open As -> Source Code.

  6. Insert the following XML snippet into the body of your file just before the final element:

  <key>NSCameraUsageDescription</key>
  <string>$(PRODUCT_NAME) uses Camera</string>
  <key>NSMicrophoneUsageDescription</key>
  <string>$(PRODUCT_NAME) uses Microphone</string>

Android

Manual installation
  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 RNStringeeReactPackage() to the list returned by the getPackages() method
  1. 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')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':stringee-react-native')
    

Note Supported for androidx

About

Migrate to androidx, forked from stringeecom/stringee-react-native

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 44.8%
  • Objective-C 44.0%
  • JavaScript 10.6%
  • Ruby 0.6%