react-native-navigation的迁移库

metro.config.js 407B

12345678910111213141516171819
  1. module.exports = {
  2. projectRoot: `${__dirname}/playground`,
  3. watchFolders: [
  4. __dirname
  5. ],
  6. resolver: {
  7. sourceExts: ['ts', 'tsx', 'js']
  8. },
  9. transformer: {
  10. babelTransformerPath: require.resolve('react-native-typescript-transformer'),
  11. getTransformOptions: async () => ({
  12. transform: {
  13. experimentalImportSupport: false,
  14. inlineRequires: false,
  15. },
  16. })
  17. }
  18. };