小编Rif*_*uza的帖子

react-native错误:无法解析模块`AccessibilityInfo`

我是React-native的新手我在尝试构建我的第一个应用程序时遵循了所有指令我遇到了这个错误.我有明确的捕获重启npm但仍然有这个错误.

The development server returned response error code: 500

URL: http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false

Body:
{"originModulePath":"F:\\React Native\\AttendenceSystem\\node_modules\\react-native\\Libraries\\react-native\\react-native-implementation.js","targetModuleName":"AccessibilityInfo","message":"Unable to resolve module `AccessibilityInfo` from `F:\\React Native\\AttendenceSystem\\node_modules\\react-native\\Libraries\\react-native\\react-native-implementation.js`: Module `AccessibilityInfo` does not exist in the Haste module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n  1. Clear watchman watches: `watchman watch-del-all`.\n  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n  3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.  4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.","errors":[{"description":"Unable to resolve module …
Run Code Online (Sandbox Code Playgroud)

android module react-native

2
推荐指数
1
解决办法
4820
查看次数

react-native 本地 json 文件

您好,我想从本地 Machine 中的 JSON 文件解析 Json 数据。这是我的代码,var data_local = require("../data/StudentList.json");我想检查控制台我得到了什么,但我得到了网络故障,你能不能给我一个完整的例子,如何从 React Native 的本地文件中获取 Json 解析。这是我的另一行代码控制台console.log(data_local);

android react-native

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

标签 统计

android ×2

react-native ×2

module ×1