Skip to content

Instantly share code, notes, and snippets.

@kiok46
Last active August 17, 2020 07:39
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiok46/aa65b2e9c2c51e092a999dc8936222ca to your computer and use it in GitHub Desktop.
Save kiok46/aa65b2e9c2c51e092a999dc8936222ca to your computer and use it in GitHub Desktop.
Write a bridge (React-Native)

Native Module in React-Native

To get a great grip on how wo build one, read these blogs.

Now, well, it's not that tough :P

react-native init ProjectName

cd ios

create-bridge (if you are using react-native-create-bridge and already installed it.)

pod init

Add the name in the pod file:

  target 'TalkTravelSinchTests' do
    inherit! :search_paths
    # Pods for testing
    pod 'SinchRTC'
  end
pod install

Manually add the 2 files using xcode. (file -> add files -> select files open ProjectName.xcodeproj, close it after adding the files. open ProjectName.xcworkspace Run the project. (It should be in the NativeModules.SinchRTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment