From 27fbab018c1de603b90f5c985ca9603d9d093398 Mon Sep 17 00:00:00 2001 From: Sunny Luo Date: Mon, 13 Aug 2018 11:11:51 +0800 Subject: [PATCH] Support rn 0.56+ --- local-cli/src/bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/src/bundle.js b/local-cli/src/bundle.js index cba69ad..6090690 100644 --- a/local-cli/src/bundle.js +++ b/local-cli/src/bundle.js @@ -372,7 +372,7 @@ export const commands = { // ref: https://github.com/ds300/react-native-typescript-transformer/blob/master/index.js#L20 if (major === 0) { if (minor >= 56) { - require('metro/src/reactNativeTransformer'); + require('metro-babel-register'); } else if (minor >= 52) { require('metro/src/babelRegisterOnly'); } else if (minor >= 47) {