Skip to content

Commit c4bf9c9

Browse files
committed
add bonus section for expo-dev-tools
1 parent 66d14ab commit c4bf9c9

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

challenges/data/01.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,5 @@ The React Developer Tools extension for Chrome and Firefox lets you inspect a Re
6767

6868
## 👽 Bonus
6969

70-
- [ ] To debug native code, network traffic and more, [you can use Flipper](https://fbflipper.com/).
7170
- [ ] [Reactotron](https://github.com/infinitered/reactotron) is another tool to monitor their application's state, network requests, and performance metrics.
7271
- [ ] To check if your app crashes, you can use a [crash reporting tool](https://weshipit.today/react-native-tools?type=Crash+reporting)

challenges/data/02.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ async function fetchStarshipsData() {
109109

110110
## 👽 Bonus
111111

112+
### Custom Hooks
113+
112114
In the previous challenge `useQuery`, `isPending` and `isError` lives on the same files. To have a more robust application, and separte the concerns of the data and the ui, we can wrap our queries into one custom hook `useStarships()`.
113115

114116
- [ ] Create a new file `useStarships.ts` and paste the content bellow
@@ -137,5 +139,13 @@ Now you can write `useStarships()` anywhere in your Screen and React Query handl
137139
If you want to display some images on your `Card`, you can use this placeholder `https://picsum.photos/400/200` as a `source`.
138140

139141
- [ ] Save this talk to your "Watch later" playlist: [Custom Hooks in React: The Ultimate UI Abstraction Layer](https://www.youtube.com/watch?v=J-g9ZJha8FE) from Tanner Linsley
142+
143+
### Advanced
144+
140145
- [ ] Display a nice animated placeholder during loading with [rn-placeholder](https://github.com/mfrachet/rn-placeholder)
141146
- [ ] Add a "Pull to Refresh" functionality to your FlatList with `onRefresh`
147+
148+
### Debugging
149+
150+
- [ ] Add [`expo-dev-tools`](https://docs.expo.dev/debugging/devtools-plugins/#expo-dev-tools-plugins) to your project
151+
- [ ] Add [`@dev-plugins/react-query`](https://docs.expo.dev/debugging/devtools-plugins/#react-query)

challenges/react-navigation/02.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ You can use these component to make it pretty:
3737

3838
## 👽 Bonus
3939

40+
### Modal
41+
4042
- [ ] Change the `screenOptions` to display your screen as a `modal`.
4143
- [ ] Add a "close modal" Button with an icon.
42-
- [ ] Add [`expo-dev-tools`](https://docs.expo.dev/debugging/devtools-plugins/#expo-dev-tools-plugins) to your project
4344

45+
### Debugging
46+
47+
- [ ] Add [`expo-dev-tools`](https://docs.expo.dev/debugging/devtools-plugins/#expo-dev-tools-plugins) to your project
4448
- [ ] Look with the `expo-dev-tools` the `route` and `params` of the screen.
4549

4650
Start the project with and open the `expo-dev-tools` with `?` and `shift + m` in your terminal to open the menu and select `@dev-plugins/react-navigation`.

0 commit comments

Comments
 (0)