The project was created with create-react-native-app.
When I use code like const a = 2 ?? 3
, there will be an error complaining "Cannot read property 'loose' of undefined".
I tried adding the @babel/plugin-proposal-nullish-coalescing-operator plugin, but there's a build error.
.babelrc
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["transform-react-jsx-source"]
}
},
"plugins": ["@babel/plugin-proposal-nullish-coalescing-operator"]
}