I initialized a new project, wrote
yarn add babel-plugin-transform-optional-chaining, then added
transform-optional-chaining to babel.config.js, ran
expo start, added an example to App.js and it worked as expected
It seems that it doesn’t work yet on RN 0.55 (I was using Expo SDK 30 here still). On another project, on which we just upgraded to RN 0.58, it seems to work by default, even without the extra babel plugin.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.