Skip to content

Commit

Permalink
feat: demonstrate react-native-fbsdk and react-native-maps working
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Jun 19, 2019
1 parent d20656b commit a5ee3f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions make-demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ npm i rn-fetch-blob
react-native link rn-fetch-blob
npm i "git+https://github.com/mikehardy/react-native-bottomsheet.git#androidx-dependency-fix"
react-native link react-native-bottomsheet
npm i react-native-fbsdk
react-native link react-native-fbsdk

# FBSDK is special - you have to create and register a Callbackmanager
sed -i -e $'s/import com.facebook.reactnative.androidsdk.FBSDKPackage/import com.facebook.CallbackManager;\\\nimport com.facebook.reactnative.androidsdk.FBSDKPackage/' android/app/src/main/java/com/rnandroidxdemo/MainApplication.java
sed -i -e $'s/new FBSDKPackage()/new FBSDKPackage(CallbackManager.Factory.create())/' android/app/src/main/java/com/rnandroidxdemo/MainApplication.java

npm i react-native-maps
react-native link react-native-maps


# Set up AndroidX for RN0.59.9 which is still using support libraries
echo "android.useAndroidX=true" >> android/gradle.properties
Expand Down

0 comments on commit a5ee3f8

Please sign in to comment.