Skip to content

Commit 1ec340c

Browse files
authored
docs: adjust wording around debug (#502)
1 parent 6bf86f9 commit 1ec340c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

website/docs/API.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Usually you should not need to call `unmount` as it is done automatically if you
8686
debug(message?: string): void
8787
```
8888

89-
Prints deeply rendered component passed to `render` with optional message on top. Uses [debug.deep](#debug) under the hood, but it's easier to use.
89+
Pretty prints deeply rendered component passed to `render` with optional message on top.
9090

9191
```jsx
9292
const { debug } = render(<Component />);
@@ -99,17 +99,16 @@ logs optional message and colored JSX:
9999
```jsx
100100
optional message
101101

102-
<TouchableOpacity
103-
activeOpacity={0.2}
102+
<View
104103
onPress={[Function bound fn]}
105104
>
106105
<Text>Press me</Text>
107-
</TouchableOpacity>
106+
</View>
108107
```
109108

110109
#### `debug.shallow`
111110

112-
Prints shallowly rendered component passed to `render` with optional message on top. Uses [debug.shallow](#debug) under the hood, but it's easier to use.
111+
Pretty prints shallowly rendered component passed to `render` with optional message on top.
113112

114113
### `toJSON`
115114

0 commit comments

Comments
 (0)