Using react-native-alarm with Expo


#1

Hi
Can i use react native alarm with expo??
because in there gradle file need to be edited


#2

It looks like react-native-alarm uses custom native code, so you can’t use it with a standard Expo project. To use custom native code, you can detach and use ExpoKit (more info here: https://docs.expo.io/versions/latest/guides/detach.html) and link in the native package that way.

BTW have you seen https://native.directory/? Several packages (but not react-native-alarm) are listed and show you if they work with regular Expo projects.


#3

Thanks for fast reply.
Can i know after detach how can i build apk.And can i stop that required internet connect in app first startup?


#4

You build APKs for detached apps using the Android tools. Detaching gives you an Android project that you can use Android Studio to open.

With detached apps the JS bundle is currently not embedded and you’ll need an internet connection to fetch it the first time the app runs. (With non-detached apps, the JS is embedded in the APK and doesn’t require an internet connection.)


closed #5

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.