mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 13:11:39 +08:00
fix loading config with rn >= 0.57
This commit is contained in:
@@ -405,7 +405,9 @@ export const commands = {
|
||||
if (major === 0) {
|
||||
if (minor >= 57) {
|
||||
// https://github.com/facebook/react-native/commit/a32620dc3b7a0ebd53feeaf7794051705d80f49e#diff-75692fe55c8b1a7c05f4264301342167L101
|
||||
defaultConfig = Config.load();
|
||||
// defaultConfig = Config.load();
|
||||
const { configPromise } = require(path.resolve('node_modules/react-native/local-cli/core'));
|
||||
defaultConfig = await configPromise;
|
||||
} else if (minor >= 45) {
|
||||
defaultConfig = Config.findOptional(path.resolve('.'));
|
||||
} else if (minor >= 42) {
|
||||
|
Reference in New Issue
Block a user