-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module AppRegistry is not a registered callable module #20296
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
#18179 might be related. I'm closing this issue as there is no minimal repro, and this appears to be unique to your particular application. |
I got same issue when using react-natve: 0.57.8 react: 16.6.3 when i imported an typescript react-native component
|
I have upgraded the React Native to 0.59.8
Please help me. |
After upgraded react native version 0.59.9 and i'm facing the same issue on both android and ios. |
Same. React-native 0.59.9, macOS 10.14.5, xcode 10.2.1, node 10.15.3 I have tried Here is my index.js: /**
* @format
*/
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import PushNotification from 'react-native-push-notification';
PushNotification.configure({
// (optional) Called when Token is generated (iOS and Android)
onRegister: function(token) {
console.log( 'TOKEN:', token );
},
// (required) Called when a remote or local notification is opened or received
onNotification: function(notification) {
console.log( 'NOTIFICATION:', notification );
// process the notification
// required on iOS only (see fetchCompletionHandler docs: https://facebook.github.io/react-native/docs/pushnotificationios.html)
notification.finish(PushNotificationIOS.FetchResult.NoData);
},
// ANDROID ONLY: GCM or FCM Sender ID (product_number) (optional - not required for local notifications, but is need to receive remote push notifications)
// IOS ONLY (optional): default: all - Permissions to register.
permissions: {
alert: true,
badge: true,
sound: true
},
// Should the initial notification be popped automatically
// default: true
popInitialNotification: false,
/**
* (optional) default: true
* - Specified if permissions (ios) and token (android and ios) will requested or not,
* - if not, you must call PushNotificationsHandler.requestPermissions() later
*/
requestPermissions: true,
});
AppRegistry.registerComponent(appName, () => App); |
@hramos this issue seems to be occurring lately. Should we reopen? |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
OS: macOS High Sierra 10.13.4
Node: 9.11.2
Yarn: 0.27.5
npm: 5.6.0
Watchman: 4.7.0
Xcode: Xcode 9.4 Build version 9F1027a
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.2 => 0.55.2
Steps to Reproduce
1- For Android, setup release configurations.
2-
react-native run-android --variant=releaseStaging
3- After the build is successful, the app is deployed to the connected device, then crashes with the following message (from cat logs):
4- Following are the dependencies in package.json file:
5- actually I'm using code-push for my app. here is my index.js
Expected Behavior
Application should run on the device without any crashes (in release mode).
Actual Behavior
Application works fine when using
react-native run-android
but when I try to release it application builds successfully and deploys onto device. Then the app crashes once it opens.Reproducible Demo
Unable to create a reproducible demo.
The text was updated successfully, but these errors were encountered: