Using react-native-alarm with Expo

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

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.

1 Like

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?

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.)

1 Like

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