Setup
Installation#
You can install the React Native Flybuy SDK with npm or yarn, as follows:
- npm
- Yarn
info
This wrapper only tested on React Native version 0.74.x. This wrapper should work with any latest React Native version that using Android Gradle Plugin version 8.2.1 or more. Minimum deployment target for iOS is 13.4
Post-install Steps#
iOS#
Setting Permissions#
Refer to the Flybuy Documentation on configuring permissions on iOS.
Fix Development Build#
By default, you don't have to modify the Podfile to run this library. If you have issue with dynamic framework, you can include the library as static framework by adding this code in Podfile.
Fix Release Build#
If you have trouble running the app in Release mode with error Undefined symbol: _OBJC_CLASS_$_Flybuy, you can fix it by changing your project Build Settings and set Build Active Architecture Only to Yes.

Android#
Gradle#
Modify
android/build.gradleNote: Modify
flybuyVersionwith your desired SDK version, the default value is2.12.1Modify
android/app/build.gradle
Google API Keys#
Refer to Flybuy Documentation on setting Google API Keys.
Permissions#
Refer to Flybuy Documentation for permission requirements on Android.
Requesting location permissions at runtime#
The following code snipper provides an example of requesting location permissions at runtime.
info
Whenever the location permission changes (accepted or declined), make sure to call: