async-storage SyntaxError Unexpected identifier while transpiling with Babel7
问题 After using @react-native-community/async-storage and transpile it with the following npm command in my react-native environment. "test": "NODE_ENV=test ./node_modules/.bin/mocha --timeout 5000 --require @babel/register \"./src/shared/__tests__/**/*.spec.js\"" I did some research and in no vain. But I found it happens to Jest too. jest test fails after installing react-native-async-storage this is my babel.config.js module.exports = { env: { production: { }, test: { presets: [ '@babel/preset