mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-02 22:33:11 +08:00
Support rn 0.56+
This commit is contained in:
@@ -372,7 +372,7 @@ export const commands = {
|
|||||||
// ref: https://github.com/ds300/react-native-typescript-transformer/blob/master/index.js#L20
|
// ref: https://github.com/ds300/react-native-typescript-transformer/blob/master/index.js#L20
|
||||||
if (major === 0) {
|
if (major === 0) {
|
||||||
if (minor >= 56) {
|
if (minor >= 56) {
|
||||||
require('metro/src/reactNativeTransformer');
|
require('metro-babel-register');
|
||||||
} else if (minor >= 52) {
|
} else if (minor >= 52) {
|
||||||
require('metro/src/babelRegisterOnly');
|
require('metro/src/babelRegisterOnly');
|
||||||
} else if (minor >= 47) {
|
} else if (minor >= 47) {
|
||||||
|
|||||||
Reference in New Issue
Block a user