我有一个使用此软件包的示例代码:
文件index.js
...
import "./ReactotronConfig";
...
const createAppropriateStore = __DEV__ ? console.tron.createStore : createStore;
const store = createAppropriateStore(reducers, applyMiddleware(...middleware));
文件ReactotronConfig.js
import Reactotron from "reactotron-react-native";
if (__DEV__) {
const tron = Reactotron.configure({ host: "192.168.1.17" })
.useReactNative()
.connect();
tron.clear();
console.tron = tron;
}
结果显示此错误
但是如果我将console.tron.createStore
替换为createStore
,它将再次起作用
答案 0 :(得分:0)
您可以尝试
.format()