我正在尝试升级,我遇到了以下情况:
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/
我使用react-本机fs将JSON文件存储在本地存储中,并从JSON文件中获取数据并将其存储在变量中。
我想获取存储在变量中的数据,并在FlatList上膨胀它。
我试过了
// getting data from the local file
var path = RNFS.DocumentDirectoryPath + '/test.json';
return RNFS.readFile(path, 'utf8')
.then((success) => {
console.log(success);//Data is storing
我正在尝试使用世博会开发本地应用程序。
我发现了一些非常有趣的框架,比如react-本地纸。我正在尝试使用他们提供的。
然而,当我运行这个例子时,我的设备中没有一个显示任何图标,只显示它们应该在的地方的白色方块。在iOS和安卓上进行了测试。
import * as React from 'react';
import { BottomNavigation, Text } from 'react-native-paper';
const MusicRoute = () => <Text>Music</Text>;
const Al