parryworld / react-native-appupdate

Update apk and update from app store in React Native.
MIT License
85 stars 36 forks source link

only import react-native-fs on android #11

Open mvayngrib opened 6 years ago

mvayngrib commented 6 years ago

cool module!

react-native-fs is an unnecessary dependency for ios apps, would be good to split the code so as not to import it when it's not needed

houssem23000 commented 6 years ago

please can you add an example of how we can use this module ??

mikehardy commented 5 years ago

I have a fork going here npmjs.com/package/rn-update-apk / mikehardy/react-native-update-apk - released there with an example app to make sure I didn't break anything

The example shows you how to use everything, and I only include react-native-fs for Android features. I am not sure if the iOS app store link is working correctly though, if you want to try it I'd appreciate it