|
@@ -33,7 +33,7 @@
|
33
|
33
|
|
34
|
34
|
`setState(state: function | S | object, callback: function): void`
|
35
|
35
|
|
36
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L288)
|
|
36
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L287)
|
37
|
37
|
|
38
|
38
|
---
|
39
|
39
|
|
|
@@ -41,7 +41,7 @@
|
41
|
41
|
|
42
|
42
|
`forceUpdate(callBack: function): void`
|
43
|
43
|
|
44
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L293)
|
|
44
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L292)
|
45
|
45
|
|
46
|
46
|
---
|
47
|
47
|
|
|
@@ -49,7 +49,7 @@
|
49
|
49
|
|
50
|
50
|
`componentDidMount(): void`
|
51
|
51
|
|
52
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L377)
|
|
52
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L376)
|
53
|
53
|
|
54
|
54
|
Called immediately after a compoment is mounted. Setting state here will trigger re-rendering.
|
55
|
55
|
|
|
@@ -59,7 +59,7 @@ Called immediately after a compoment is mounted. Setting state here will trigger
|
59
|
59
|
|
60
|
60
|
`shouldComponentUpdate(nextProps: Readonly<object>, nextState: Readonly<any>, nextContext: any): boolean`
|
61
|
61
|
|
62
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L388)
|
|
62
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L387)
|
63
|
63
|
|
64
|
64
|
Called to determine whether the change in props and state should trigger a re-render.
|
65
|
65
|
|
|
@@ -69,7 +69,7 @@ Called to determine whether the change in props and state should trigger a re-re
|
69
|
69
|
|
70
|
70
|
`componentWillUnmount(): void`
|
71
|
71
|
|
72
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L393)
|
|
72
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L392)
|
73
|
73
|
|
74
|
74
|
Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as
|
75
|
75
|
cancelled network requests, or cleaning up any DOM elements created in `componentDidMount`.
|
|
@@ -80,7 +80,7 @@ cancelled network requests, or cleaning up any DOM elements created in `componen
|
80
|
80
|
|
81
|
81
|
`componentDidCatch(error: Error, errorInfo: ErrorInfo): void`
|
82
|
82
|
|
83
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L398)
|
|
83
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L397)
|
84
|
84
|
|
85
|
85
|
Catches exceptions generated in descendant components. Unhandled exceptions will cause
|
86
|
86
|
the entire component tree to unmount.
|
|
@@ -91,7 +91,7 @@ the entire component tree to unmount.
|
91
|
91
|
|
92
|
92
|
`getSnapshotBeforeUpdate(prevProps: Readonly<object>, prevState: Readonly<any>): SS | null`
|
93
|
93
|
|
94
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L424)
|
|
94
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L423)
|
95
|
95
|
|
96
|
96
|
Runs before React applies the result of `render` to the document, and
|
97
|
97
|
returns an object to be given to componentDidUpdate. Useful for saving
|
|
@@ -103,7 +103,7 @@ things such as scroll position before `render` causes changes to it.
|
103
|
103
|
|
104
|
104
|
`componentDidUpdate(prevProps: Readonly<object>, prevState: Readonly<any>, snapshot: SS): void`
|
105
|
105
|
|
106
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L430)
|
|
106
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L429)
|
107
|
107
|
|
108
|
108
|
Called immediately after updating occurs. Not called for the initial render.
|
109
|
109
|
|
|
@@ -113,7 +113,7 @@ Called immediately after updating occurs. Not called for the initial render.
|
113
|
113
|
|
114
|
114
|
`componentWillMount(): void`
|
115
|
115
|
|
116
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L445)
|
|
116
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L444)
|
117
|
117
|
|
118
|
118
|
Called immediately before mounting occurs, and before `Component#render`.
|
119
|
119
|
Avoid introducing any side-effects or subscriptions in this method.
|
|
@@ -124,7 +124,7 @@ Avoid introducing any side-effects or subscriptions in this method.
|
124
|
124
|
|
125
|
125
|
`UNSAFE_componentWillMount(): void`
|
126
|
126
|
|
127
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L459)
|
|
127
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L458)
|
128
|
128
|
|
129
|
129
|
Called immediately before mounting occurs, and before `Component#render`.
|
130
|
130
|
Avoid introducing any side-effects or subscriptions in this method.
|
|
@@ -135,7 +135,7 @@ Avoid introducing any side-effects or subscriptions in this method.
|
135
|
135
|
|
136
|
136
|
`componentWillReceiveProps(nextProps: Readonly<object>, nextContext: any): void`
|
137
|
137
|
|
138
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L474)
|
|
138
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L473)
|
139
|
139
|
|
140
|
140
|
Called when the component may be receiving new props.
|
141
|
141
|
React may call this even if props have not changed, so be sure to compare new and existing
|
|
@@ -147,7 +147,7 @@ props if you only want to handle changes.
|
147
|
147
|
|
148
|
148
|
`UNSAFE_componentWillReceiveProps(nextProps: Readonly<object>, nextContext: any): void`
|
149
|
149
|
|
150
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L491)
|
|
150
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L490)
|
151
|
151
|
|
152
|
152
|
Called when the component may be receiving new props.
|
153
|
153
|
React may call this even if props have not changed, so be sure to compare new and existing
|
|
@@ -159,7 +159,7 @@ props if you only want to handle changes.
|
159
|
159
|
|
160
|
160
|
`componentWillUpdate(nextProps: Readonly<object>, nextState: Readonly<any>, nextContext: any): void`
|
161
|
161
|
|
162
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L504)
|
|
162
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L503)
|
163
|
163
|
|
164
|
164
|
Called immediately before rendering when new props or state is received. Not called for the initial render.
|
165
|
165
|
|
|
@@ -169,7 +169,7 @@ Called immediately before rendering when new props or state is received. Not cal
|
169
|
169
|
|
170
|
170
|
`UNSAFE_componentWillUpdate(nextProps: Readonly<object>, nextState: Readonly<any>, nextContext: any): void`
|
171
|
171
|
|
172
|
|
-[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L519)
|
|
172
|
+[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src//Users/danielzlotin/dev/react-native-navigation/node_modules/@types/react/index.d.ts#L518)
|
173
|
173
|
|
174
|
174
|
Called immediately before rendering when new props or state is received. Not called for the initial render.
|
175
|
175
|
|