我有以下react-native代码: import React from 'react';
import {AppRegistry} from 'react-native';
import { createAppContainer } from 'react-navigation';
import { createStackNavigator} from 'react-navigation-stack';
import { createDrawerNavigator} from 'react-navigation-dr
我的应用程序关闭时,我按下开关屏幕按钮。我没有看到任何错误输出。我做了一个版本检查,没有问题。
我为按钮编写的函数工作正常。
Router.js
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import First from "./First"
我使用react导航5.x作为我的react本机app.Always,当我试图从菜单导航到一个屏幕时,我收到了一个错误。
错误是:
The action 'NAVIGATE' with payload {"name":"Screen2"} was not handled by any navigator.
Do you have a screen named 'Screen2'?
This is a development-only warning and won't be shown in production.
这里
登录到我的react原生项目后,我想转到下一页,但我在某个地方做错了。Formcomponent在任何情况下都不能作为onPress使用。原因何在? import React, {useState} from 'react';
import {View, Text, TextInput, TouchableOpacity, Image} from 'react-native';
import {login_screen} from '../styles/page_style';
import Home from 'healthyr
这是我第一次使用Redux和Redux持久化。当我试图运行我的应用程序时(在index.js第20行中),我得到了这个错误:
TypeError:未定义不是对象(计算'store.getState')
index.js:
import React from 'react';
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
imp