1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-17 21:46:09 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Support rn 0.57+

This commit is contained in:
sunny.luo
2018-09-28 20:55:16 +08:00
parent a4becf526b
commit 9d37aead57

View File

@@ -369,7 +369,6 @@ export const commands = {
await rmdir(realIntermedia);
await mkdir(realIntermedia);
// ref: https://github.com/ds300/react-native-typescript-transformer/blob/master/index.js#L20
if (major === 0) {
if (minor >= 56) {
require('metro-babel-register');
@@ -404,7 +403,10 @@ export const commands = {
}
if (major === 0) {
if (minor >= 45) {
if (minor >= 57) {
// https://github.com/facebook/react-native/commit/a32620dc3b7a0ebd53feeaf7794051705d80f49e#diff-75692fe55c8b1a7c05f4264301342167L101
defaultConfig = Config.load();
} else if (minor >= 45) {
defaultConfig = Config.findOptional(path.resolve('.'));
} else if (minor >= 42) {
defaultConfig= Config.get(