Skip to content

Commit f633019

Browse files
authored
📝 Add error red screen to FAQ (#92)
1 parent f646ee6 commit f633019

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

FAQ.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Why choose `react-native-error-boundary` over [`react-error-boundary`](https://github.com/bvaughn/react-error-boundary)?
44

5-
The main difference is that `react-native-error-boundary` targets React Native. It provides a default `FallbackComponent` that uses React Native components underneath, so this is **not compatible with React** on the web. Additionally, the API for `react-error-boundary` is somewhat different, having many more options than `react-native-error-boundary` while also seemingly being compatible with React Native.
5+
The main difference is that `react-native-error-boundary` targets React Native. It provides a default `FallbackComponent` that uses React Native components underneath, so this is **not compatible with React** on the web. Additionally, the API for `react-error-boundary` is somewhat different, having many more options than `react-native-error-boundary` while also seemingly being compatible with React Native.
66

7-
At the end of the day, you should pick the option you prefer based on your needs and on the API that each library provides.
7+
At the end of the day, you should pick the option you prefer based on your needs and on the API that each library provides.
8+
9+
## Why I see a red error screen on development ?
10+
11+
If you see a red error error screen while you're on Development, that's normal. It's the way `react-native` showcases you the error you've got. To see the `ErrorBoundary` component just dismiss the screen or press the `Esc` key.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,5 @@ These are the props that the `FallbackComponent` **receives**:
109109
## FAQ
110110

111111
- [Why choose `react-native-error-boundary` over `react-error-boundary`?](FAQ.md#why-choose-react-native-error-boundary-over-react-error-boundary)
112+
113+
- [Why I see a red error screen on development ?](FAQ.md#why-i-see-a-red-error-screen-on-development-)

0 commit comments

Comments
 (0)