Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

TrustDec
Copy link

@TrustDec TrustDec commented Aug 3, 2017

This responds to a breaking change in React Native 0.47+

This responds to a [breaking change](facebook/react-native@ce6fb33) in React Native 0.47.0.
@kelset
Copy link
Contributor

kelset commented Aug 4, 2017

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();
}
*/
Copy link
Owner

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
Copy link
Owner

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? /* ... */?

@asgvard
Copy link

asgvard commented Aug 7, 2017

Removing the whole method will brake on RN <0.47.
It's sufficient to remove only @Override notation to keep backward compatibility.
Like it's done here:
https://github.com/callstack-io/react-native-fbads/pull/71/files

@Kureev
Copy link
Owner

Kureev commented Aug 8, 2017

3.1.3 has been released with the similar patch (just removing @Override)

@Kureev Kureev closed this Aug 8, 2017
rensamatar added a commit to rensamatar/react-native-radar that referenced this pull request Sep 4, 2017
Fixed crashed when compile with RN > 0.47+

Related discussion 
Kureev/react-native-blur#226
}

// if react native < 47, open code
/* @Override

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

@ORzazade
Copy link

npm uninstall react-native-code-push --save then npm i react-native-code-push --save

lxp-git pushed a commit to Flickering-AI/react-native-blur that referenced this pull request Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants