Setup
#
InstallationYou 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 PermissionsRefer to the Flybuy Documentation on configuring permissions on iOS.
#
Fix Development BuildBy 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 BuildIf 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#
GradleModify
android/build.gradle
Note: Modify
flybuyVersion
with your desired SDK version, the default value is2.12.1
Modify
android/app/build.gradle
#
Google API KeysRefer to Flybuy Documentation on setting Google API Keys.
#
PermissionsRefer to Flybuy Documentation for permission requirements on Android.
#
Requesting location permissions at runtimeThe 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: