react-native-mock
react-native-mock copied to clipboard
Updating master to support react > 16 + native > 0.52
Went through and fixed all the deprecated API's.
- PropTypes imported from 'prop-types'
- createClass to createReactClass
- Updated dependencies
Fixes #139
It's probably not the cleanest update and I didn't add any tests but they all pass.
Enzyme works with react-native >= 0.52 which is what I needed.
Let me know if there are any issues I'm missing.
Using react-addons-perf latest version but its not compatible with React 16. Not sure how to fix this or why it's working fine for me. Will need to find time to dig into it further
I believe most of these changes are fixed in #120 ?
I saw a mention of the re-write in one of the issues. The changes I pushed got my test suite running again with React > 16 so was just trying to help folks that are stuck until the re-write lands.
any chance we can get this merged?
I also waiting for this patch. React 16.2 + latest RN not working with react-native-mock
A workaround is mentioned here: https://stackoverflow.com/questions/42039383/how-to-use-enzyme-for-react-native-with-jest
Still waiting for this patch.