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

Adding setNativeProps tests for NativeMethodsMixin #14901

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

elicwhite
Copy link
Member

@elicwhite elicwhite commented Feb 20, 2019

We are going to add a warning for setNativeProps on NativeMethodsMixin so I'm adding a test for the current behavior to be able to check for the warning in a follow up.

I'm also adding a test for the Fabric renderer which required for checking canonical. This isn't super relevant because NativeMethodsMixin won't work for Fabric at all, but this will probably help during the migration.

Related to react-native-community/discussions-and-proposals#72

@@ -30,8 +32,16 @@ describe('ReactFabric', () => {
ReactFabric = require('react-native-renderer/fabric');
FabricUIManager = require('FabricUIManager');
UIManager = require('UIManager');
createReactClass = require('create-react-class/factory')(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this from

createReactClass = require('create-react-class/factory')(
React.Component,
React.isValidElement,
new React.Component().updater,

@elicwhite elicwhite merged commit 4f4aa69 into facebook:master Feb 20, 2019
@elicwhite elicwhite deleted the setnativeprop-expect branch February 20, 2019 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants