小编Eva*_*ans的帖子

错误:不变违规:TurboModuleRegistry.getEnforcing(...):找不到“NativeReanimated”

我按照本教程https://medium.com/@ritikjain1272/making-drawer-navigator-and-a-splash-screen-on-your-react-native-app-2fb561ee17f1我已经能够在几个移动过去的应用程序。哪个编译为APK并上传到Playstore,但这是过去。

从今天开始一直在尝试,要让它像往常一样工作是非常不可能的。我不断收到此错误

不变违规:TurboModuleRegistry.getEnforcing(...):找不到“NativeReanimated”。验证此名称的模块是否已在本机二进制文件中注册。

我的 App.js 代码看起来像这样

import {createAppContainer, createSwitchNavigator} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import {createDrawerNavigator} from 'react-navigation-drawer';
import Icon from 'react-native-vector-icons/SimpleLineIcons';

import Splash from './src/Splash';
import Login from './src/Login';
import Register from './src/Register';
import Dashboard from './src/Dashboard';
import InstantMessage from './src/InstantMessage';

const LoginNavigator = createStackNavigator({
  'Login': {
    screen: Login,
    navigationOptions: ({navigation}) => ({
      headerLeft: () => (
        <TouchableOpacity
          style={{marginLeft: 20}}
          onPress={() => navigation.toggleDrawer()}>
          <Icon name="menu" size={12} />
        </TouchableOpacity>
      ),
    }),
  },
});

const RegisterNavigator = createStackNavigator({ …
Run Code Online (Sandbox Code Playgroud)

react-native react-navigation

6
推荐指数
1
解决办法
1187
查看次数

程序包的开发人员警告 * 无法在通道“fcm_fallback_notification_channel”上发布通知 请参阅日志了解更多详细信息

我在尝试在 React Native 中实现推送通知时收到此错误。

Developer Warning for package com.pn2
Failed to post notification on channel
"fcm_fallback_notification_channel"

See log for more details
Run Code Online (Sandbox Code Playgroud)

我对此很陌生,我关注了这个视频http://youtube.com/watch?v=xSOr_u3Ev1s并设法按照告知实现所有内容,但我收到警告并且推送通知未显示。

我的代码看起来是这样的:

索引.js

/**
 * @format
 */

import {AppRegistry, Platform} 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 is received or opened, or local notification …
Run Code Online (Sandbox Code Playgroud)

javascript push-notification react-native

4
推荐指数
1
解决办法
6971
查看次数