1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Support rn 0.56+

This commit is contained in:
Sunny Luo 2018-08-13 11:11:51 +08:00 committed by GitHub
parent beeb81cece
commit 27fbab018c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {