@@ -85,7 +85,7 @@ We recommend using [React Native Testing Library](https://callstack.github.io/re
8585
8686We will go through some real-world case test code examples. Each code example consists of tested navigator and test code file.
8787
88- ### Example 1
88+ ### Example 1 - Navigation between tabs
8989
9090Navigate to settings screen by tab bar button press.
9191
@@ -245,9 +245,9 @@ const event = {};
245245fireEvent .press (button, event );
246246```
247247
248- ### Example 2
248+ ### Example 2 - Reacting to navigation events
249249
250- Show text on another screen after transition to it ends .
250+ Show text on another screen after transition is completed .
251251
252252<Tabs groupId =" example " queryString =" example " >
253253<TabItem value =" static " label =" Static " default >
@@ -415,11 +415,11 @@ act(() => jest.runAllTimers());
415415
416416If we hadn't used fake timers in this example, the test would have failed.
417417
418- In the previous example we didn't use fake timers because ` BottomTabNavigator ` by default does not use any animations for the transition.
418+ In the previous example we didn't use fake timers because ` BottomTabNavigator ` by default does not use any transition animations .
419419
420- ### Example 3
420+ ### Example 3 - Enforce navigator state in response to navigation event
421421
422- Always displays settings screen after settings tab bar button press .
422+ Always display settings screen after settings tab bar button is pressed .
423423
424424<Tabs groupId =" example " queryString =" example " >
425425<TabItem value =" static " label =" Static " default >
@@ -654,7 +654,7 @@ We get tab bar buttons, press buttons and check if rendered screens are correct.
654654
655655In this example, we don't need to use fake timers because text from the next screen is available using ` getByText ` even before the animation ends.
656656
657- ### Example 4
657+ ### Example 4 - ` useFocusEffect ` hook and data fetching
658658
659659On every profile screen focus, display loading state while waiting for data and then show fetched profile.
660660
0 commit comments