Когда я запускаю react-native run-ios
, мое приложение работает правильно, НО, когда я делаю react-native run-android
, я получаю сообщение об ошибке:
.../node_modules/react-native/Libraries/ART/ReactNativeART.js: Missing class properties transform.
![enter image description here](https://i.stack.imgur.com/9PwgA.png)
Так выглядит что-то не так с Вавилоном?
Мой .babelrc
такой:
{
"passPerPreset": true,
"plugins": [
"transform-class-properties",
"transform-inline-environment-variables"
],
"presets": [
"react-native"
]
}
и вавилонские пакеты внутри package.json
:
"devDependencies": {
"babel-eslint": "^8.0.2",
"babel-plugin-remove-comments": "^2.0.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
"babel-preset-react-native": "^4.0.0",
"babel-jest": "23.0.1",
"babel-plugin-transform-class-properties": "6.24.1",
}
Кто-нибудь знает, что может быть не так?