Snapshot testing with RN is a nice surprise, because you won't have to change anything in the way you worked before. Let's just look at a few examples, and you'll be convinced.
Adding snapshot testing
How to do it...
We had already seen snapshot testing in the Testing changes with snapshots section of Chapter 10, Testing Your Application. It so happens that the very same code will work perfectly with RN apps, without demanding any specific changes, other than those depending on variations in the code. Let's consider the following example. The <RegionsTable> component we had developed earlier has an extra prop in RN: deviceData. So, we can copy the original snapshot test code and just add the new...