我的反应-导航抽屉不工作,我得到这个错误时,运行的应用程序,任何建议来解决这个问题。
Unable to resolve "react-navigation-drawer" from "App.js"
import React from 'react';
import {createAppContainer} from 'react-navigation';
import {createDrawerNavigator} from 'react-navigation-drawer';
import {Dimensi
我试图在网上找到一个解决方案,我找到了这个,我按照说明操作,但我被屏蔽了:
TypeError: Cannot set property 'geolocation' of undefined
因此,当我删除解决方案时,我的错误是:
ReferenceError: navigator is not defined
我的package.json看起来像这样:
"dependencies": {
"eslint-plugin-react-native": "^3.2.0",
"prop-types":
我对react是个新手--原生、npm等。但我可以根据一些示例运行一些android应用程序的测试。
现在我想学习导航。我遵循中的步骤...
但是在我安装了react导航之后,我就不能再使用"react-native run-android“命令了。
C:\Users\Nicolas\react-native-app\KleinProject>react-native run-android
Command `run-android` unrecognized. Make sure that you have run `npm install` and that you are
你好,我试着学习react-原生的,我尝试做一个重定向“设置”的按钮:
import Home from './components/Home'
import Settings from './components/Settings'
import * as React from 'react';
import { Text,Button,Navigation, View } from 'react-native';
import { NavigationContainer } from '@react-navigat
我正在为我的家人开发这个应用程序,到目前为止,我已经启动并运行了所有东西,但是现在我面临着这个问题,因为我想用onPress()加载另一个视图,但是我不知道我的错误是什么。 这是我的代码 import React, {useState} from 'react';
import {View, StyleSheet} from 'react-native';
import {Text} from 'react-native-paper';
import {TextInput} from 'react-native-paper';
我试着用Bugsnag在React-Native上运行Jest单元测试,但得到了错误:
The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/en/configuration#testenvironment-string.
Consider using the "jsdom" test environment.
ReferenceError: window is not defined
1 | import
你好,我正在制作一个反应本地应用程序与博览会。以下是我的app.js文件:
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import {createBottomTabNavigator} from 'react-navigation';
import WelcomeScreen from "./screens/WelcomeScreen";
import AuthScreen from "./screen
我正在使用react-native init创建一个react-native项目。我正在为SQLite绑定使用库。
我有一个DbConnector.jest-test.js单元测试文件。内容是
import DbConnector from '../app/components/DbConnector.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correc
底部选项卡未显示,并给出以下错误导致应用程序崩溃: ERROR ReferenceError: Can't find variable: shouldBeUseWeb
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This
我有一个react原生应用程序,它不使用expo。我得到以下错误: React Native version mismatch.
│
│ JavaScript version: 0.57.7
│ Native version: 0.61.5
│
└ Make sure that you have re