How to pass custom transformer to react-native-scripts

Hi,

I don’t know if you have it done but there is a nice tutorial for typescript and I imagine that you could use it as a example and do something similar.

Basically you have that transformer you @chandu01011 posted and a file rn-cli.config


module.exports = {  
  getTransformModulePath() {
    return require.resolve('react-native-typescript-transformer')
  },
  getSourceExts() {
    return ['ts', 'tsx'];
  }
}
1 Like