Just successfully got the library for bare react-native (0.73.2) project working again. Unfortunately, the metro-react-native-babel-preset that comes with react-native out of the box does not allow you to change the options of the babel/plugin-transform-react-jsx plugin. Just add the plugin with options as listed below and start react-native packager as usual. Default env for babel is "development". If you do not use expo when working with react-native, the following method will help you:
Just successfully got the library for bare react-native (0.73.2) project working again. Unfortunately, the
metro-react-native-babel-preset
that comes with react-native out of the box does not allow you to change the options of thebabel/plugin-transform-react-jsx
plugin. Just add the plugin with options as listed below and start react-native packager as usual. Default env for babel is "development". If you do not use expo when working with react-native, the following method will help you: