Use this quickstart example app to learn how to create a basic XMTP React Native app that calls through to @xmtp/react-native-sdk
.
npm install
.npm run ios
or npm run android
.npx react-native init AwesomeChatProject
.npx install-expo-modules@latest
.npm install expo
.npm i @xmtp/react-native-sdk
.android
directory, update the build.gradle
file to use minSdkVersion = 22
. This is required by XMTP.ios
directory, update the Podfile
file as follows:
platform :ios, '16.0'
. This is required by XMTP.pod 'secp256k1.swift', :modular_headers => true
. This is required for web3.swift.You're now ready to build your own React Native chat app with XMTP!