Мое приложение React-Native работало нормально, пока я вдруг не получил эту странную ошибку. Я не добавил функцию 'a' и не передаю функцию 'a' в моем коде.
Приложение. js Файл
import React from "react";
import { Platform, StatusBar, StyleSheet, View } from "react-native";
import { Provider } from "react-redux";
import { createStore, applyMiddleware, compose } from "redux";
import { persistStore } from "redux-persist";
import redux-thunk from "redux-thunk";
import reducers from "redux/reducers";
import Screens from "screens";
// Configure REACT, REDUX DEVTOOLS for debugging
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(
reducers,
composeEnhancers(applyMiddleware(reduxThunk))
);
const persistor = persistStore(store);
export default class App extends React.PureComponent {
render(){
return (
<Provider store={store}>
<View style={styles.container}>
{Platform.OS === "ios" && <StatusBar barStyle="default" />}
<Screens />
</View>
</Provider>
);
}
}
}