我正在尝试使用世博会开发本地应用程序。
我发现了一些非常有趣的框架,比如react-本地纸。我正在尝试使用他们提供的。
然而,当我运行这个例子时,我的设备中没有一个显示任何图标,只显示它们应该在的地方的白色方块。在iOS和安卓上进行了测试。
import * as React from 'react';
import { BottomNavigation, Text } from 'react-native-paper';
const MusicRoute = () => <Text>Music</Text>;
const Al
我是react-native的新手,或者你可以说React是新的,我正在开发react-native导航,我已经按照https://reactnavigation.org/docs/getting-started中的说明安装了所有必需的库,但当我运行我的代码时,它给出了一个错误,因为“@react- navigation /native can not be be not be be not be in the project or this directories.‘”。我应该做什么?有什么方法可以开始我的代码吗?帮帮我 ?
我在运行npx react-原生启动/npx反应--本机运行android,一切都很好;然而,应用程序无法正确启动服务器。这是我正在犯的错误:
Error: The HTTP/S server is already being used by another WebSocket server
at new WebSocketServer (.../node_modules/ws/lib/websocket-server.js:83:15)
at Object.attachToServer (.../node_modules/react-native/node_modules/@
我试图配置我的网络故事书的反应-本机和类型抄本项目。
我跟着一个教程,也有webpack,一切都很好,直到结束。我的故事书看起来是空的,我的控制台中有一个加载程序错误。
Unexpected error while loading ./Test/Test.stories.js: Error: Module parse failed: Unexpected token (8:40)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process
之前一切都很正常,但图标没有显示为带有X的方框,我得到了这个错误:
fontFamily "FontAwesome" is not a system font and has not been loaded through Font.loadAsync.
- If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system.
- If this is a custom fon
我创建了一个新的react-使用react的本机项目--本机init AppName,当我尝试在Android中运行时,它抛出了不能获得AppName行中的空对象的属性‘依赖’:183我不知道为什么会出现这个异常。我甚至没有在这个项目上做任何改变
下面是我使用的命令
react-native init Example
cd Example
npm i
react-native run-android
反应-本机版本
react-native-cli: 2.0.1
react-native: 0.61.3
npm - 6.11.2版本
我正在尝试升级,我遇到了以下情况:
error: bundling: UnableToResolveError: Unable to resolve module `react/lib/ReactComponentTreeHook` from `/Users/anthony/dev/apptova-react/node_modules/react-native/Libraries/Performance/Systrace.js`: Module does not exist in the module map or in these directories:
/Users/anthony/
我正在使用bare react原生测试驱动开发,并使用包jest和酶。我为UI组件安装了NativeBase。当我使用来自NativeBase的图标时,我得到了错误
FAIL src/screens/Welcome/Welcome.test.js
● Test suite failed to run
/Users/../node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.ttf:1
({"Object.<anonymous>":functio
我需要帮助建立我的反应-本土项目。我尝试了react-原生运行--android,但是我得到了以下错误:
react-native : The term 'react-native' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try again.
At line