-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated Android package override #226
Conversation
This responds to a [breaking change](facebook/react-native@ce6fb33) in React Native 0.47.0.
I think that simply commenting line 23 instead of removing the whole method is a better idea, since it should be backward compatible. |
public List<Class<? extends JavaScriptModule>> createJSModules() { | ||
return Collections.emptyList(); | ||
} | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we fix indentation before its merged, please?
return Collections.emptyList(); | ||
} | ||
|
||
// if react native < 47, open code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you be so kind to move this comment under multiline comment block? /* ... */?
Removing the whole method will brake on RN <0.47. |
3.1.3 has been released with the similar patch (just removing |
Fixed crashed when compile with RN > 0.47+ Related discussion Kureev/react-native-blur#226
} | ||
|
||
// if react native < 47, open code | ||
/* @Override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all one needs to do is comment out just @Override
statement instead of the entire method. Reason being purely backward compatibility
npm uninstall react-native-code-push --save then npm i react-native-code-push --save |
This responds to a breaking change in React Native 0.47+