RealOrangeOne / react-native-mock

A fully mocked and test-friendly version of react native (maintainers wanted)
MIT License
570 stars 153 forks source link

Updating master to support react > 16 + native > 0.52 #158

Open gabrielrotbart opened 6 years ago

gabrielrotbart commented 6 years ago

Went through and fixed all the deprecated API's.

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 commented 6 years ago

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

RealOrangeOne commented 6 years ago

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

gabrielrotbart commented 6 years ago

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.

saraht129 commented 6 years ago

any chance we can get this merged?

pumano commented 6 years ago

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

heysailor commented 6 years ago

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

just4fun commented 6 years ago

Still waiting for this patch.