You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/API.md
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ Usually you should not need to call `unmount` as it is done automatically if you
86
86
debug(message?:string): void
87
87
```
88
88
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.
90
90
91
91
```jsx
92
92
const { debug } =render(<Component />);
@@ -99,17 +99,16 @@ logs optional message and colored JSX:
99
99
```jsx
100
100
optional message
101
101
102
-
<TouchableOpacity
103
-
activeOpacity={0.2}
102
+
<View
104
103
onPress={[Function bound fn]}
105
104
>
106
105
<Text>Press me</Text>
107
-
</TouchableOpacity>
106
+
</View>
108
107
```
109
108
110
109
#### `debug.shallow`
111
110
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.
0 commit comments