react-native-testing-library icon indicating copy to clipboard operation
react-native-testing-library copied to clipboard

Add more examples

Open thymikee opened this issue 8 years ago • 5 comments

There's never too little. As a part of it we could show examples with Redux, Apollo, Relay, React Navigation, etc.

thymikee avatar Oct 11 '18 21:10 thymikee

Relay Modern example here https://github.com/entria/ReactNavigationRelayModern/pull/32

not working yet \o/

any help is appreciated

sibelius avatar Oct 23 '18 19:10 sibelius

I have no experience with Relay. I've checked out the code and it looks like UserList's render method is not being called for some reason (perhaps UserListPaginationContainer is not calling it?). Try to investigate that.

You can also use debug.deep(renderedComponent) to take a look what's rendered.

thymikee avatar Oct 23 '18 20:10 thymikee

I've added an example with redux integration here: https://github.com/LaurenceRolandJames/react-native-testing-library-redux-example

Feel free to use it however you wish.

LaurenceRolandJames avatar Feb 07 '19 12:02 LaurenceRolandJames

Awesome, thank you @LaurenceRolandJames!

thymikee avatar Feb 07 '19 12:02 thymikee

Closing this, since we now have more specific issues like #281 or #280

thymikee avatar May 14 '20 19:05 thymikee