Skip to content
Advertisement

Tag: expo

reactNative.Share.open is undefined

I’m trying to use the share component with react native but I keep getting this error below. Any idea why ? ‘_reactNative.Share.open is not a function. (In ‘_reactNative.Share.open({ url: uri })’, ‘_reactNative.Share.open’ is undefined)’ Answer This is because ‘Share.open()’ is now deprecated, use ‘Share.share()’ instead.

Android: error: cannot find symbol packages.add(new MyAppPackage())

Please HELP!! I’m working on an app in react-native that involves using a native Calendar module. I’m trying to register this module with react native and I keep getting this error. This is how I’ve registered the module in MainApplication.java: This is the MyAppPackage.java file I’ve created using the tutorial here, https://reactnative.dev/docs/native-modules-android#register-the-module-android-specific.: Note: This app was previously created using the

Advertisement