我已经配置了 Sentry 来响应本机博览会应用程序。Sentry 正在报告此次崩溃。
\nError: Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=640 "You can\xe2\x80\x99t save the file \xe2\x80\x9cmanifest.json\xe2\x80\x9d because the volume \xe2\x80\x9cData\xe2\x80\x9d is out of space." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX...\n at c(app:///main.jsbundle:1160:3923)\n at map([native code])\n at ? (app:///main.jsbundle:1160:1925)\n at value(app:///main.jsbundle:41:3842)\n at ? (app:///main.jsbundle:41:1163)\n at value(app:///main.jsbundle:41:2799)\n at value(app:///main.jsbundle:41:1133)\n at value([native code])\n\nRun Code Online (Sandbox Code Playgroud)\n没有更多的细节,但检查谷歌搜索的数量让我感到困惑。发现它的苹果隐私问题,但同时,我可以发现它的内存问题为错误状态。
\n在博览会论坛上发现了同样的问题,但没有回复。问题链接
\n我正在尝试运行__test__中的 React Native 提供的App-test.js文件,即
\n\nimport \'react-native\';\nimport React from \'react\';\nimport App from \'../src/app\';\n\n// Note: test renderer must be required after react-native.\nimport renderer from \'react-test-renderer\';\n\nit(\'renders correctly\', () => {\n renderer.create(<App />);\n});\nRun Code Online (Sandbox Code Playgroud)\n\npackage.json中的 Jest看起来像这样
\n\n...\n "jest": {\n "preset": "react-native",\n "setupFiles": [\n "<rootDir>/node_modules/react-native-gesture-handler/jestSetup.js"\n ],\n "transformIgnorePatterns": [\n "node_modules/(?!react-native)/"\n ],\n "globals": {\n "__DEV__": true\n },\n "testEnvironment": "node"\n }\n...\nRun Code Online (Sandbox Code Playgroud)\n\n我正在使用包react-native-localization,它在应用程序中工作正常,但在运行笑话时出现错误,即:
\n\n__tests__/App-test.js\n \xe2\x97\x8f Test suite failed to run\n\n TypeError: Cannot read property \'language\' of undefined\n\n 5 …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用包react-native-audio-recorder-player在反应本机应用程序中录制音频。录音成功开始,但即使在调用stopRecorder()后仍继续录音。
尝试了 gitHub 上的许多解决方案,但没有任何帮助。这是我的代码
import React from 'react';
import { View, TouchableOpacity, Text} from 'react-native';
import AudioRecorderPlayer from 'react-native-audio-recorder-player';
export const Recorder = () => {
const audioRecorderPlayer = new AudioRecorderPlayer();
const onStartRecord = async () => {
await audioRecorderPlayer.startRecorder();
audioRecorderPlayer.addRecordBackListener(e => {
console.log('Recording . . . ', e.current_position);
return;
});
};
const onStopRecord = async () => {
const audio = await audioRecorderPlayer.stopRecorder();
audioRecorderPlayer.removeRecordBackListener();
};
return (
<View style={{flex: 1, justifyContent: 'center', alignItems: 'space-between'}}>
<TouchableOpacity onPress={onStartRecord}> …Run Code Online (Sandbox Code Playgroud)