错误reactotron createStore不起作用

时间:2019-08-21 12:46:53

标签: react-native reactotron

我有一个使用此软件包的示例代码:

  • 反应堆原生
  • reactotron-redux
  • reactotron-redux-saga

文件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;
}

结果显示此错误

bug

但是如果我将console.tron.createStore替换为createStore,它将再次起作用

1 个答案:

答案 0 :(得分:0)

您可以尝试

.format()