Setup
#
InstallationYou can install the React Native Flybuy SDK with npm or yarn, as follows:
- npm
- Yarn
#
Post-install Steps#
iOS#
Setting PermissionsRefer to the Flybuy Documentation on configuring permissions on iOS.
#
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: