Open
Description
For typescript design:type metadata to be avaliable in react-native it is required to add some plugins to babel.config.js:
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
'babel-plugin-transform-typescript-metadata',
['@babel/plugin-proposal-decorators', { legacy: true }]
],
};
Without this most transform still run fine but some produce different, weird results (a Map with Type() annotation for example).
Might make sense for the react-native (or babel) folks to add a section to the install docs with a hint.