react-native-mock icon indicating copy to clipboard operation
react-native-mock copied to clipboard

Updating master to support react > 16 + native > 0.52

Open gabrielrotbart opened this issue 7 years ago • 7 comments

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.

gabrielrotbart avatar Feb 20 '18 01:02 gabrielrotbart

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

gabrielrotbart avatar Feb 20 '18 06:02 gabrielrotbart

I believe most of these changes are fixed in #120 ?

RealOrangeOne avatar Feb 20 '18 11:02 RealOrangeOne

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.

gabrielrotbart avatar Feb 20 '18 12:02 gabrielrotbart

any chance we can get this merged?

saraht129 avatar Feb 27 '18 09:02 saraht129

I also waiting for this patch. React 16.2 + latest RN not working with react-native-mock

pumano avatar Mar 12 '18 13:03 pumano

A workaround is mentioned here: https://stackoverflow.com/questions/42039383/how-to-use-enzyme-for-react-native-with-jest

heysailor avatar Mar 18 '18 19:03 heysailor

Still waiting for this patch.

just4fun avatar Apr 11 '18 09:04 just4fun