@react-navigation/native 3.6.1 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,7 @@ function validateProps(props) {
23
23
  screenProps,
24
24
  persistNavigationState,
25
25
  loadNavigationState,
26
+ theme,
26
27
  ...containerProps
27
28
  } = props;
28
29
  /* eslint-enable no-unused-vars */
@@ -109,21 +110,6 @@ export default function createNavigationContainer(Component) {
109
110
  return isStateful(this.props);
110
111
  }
111
112
 
112
- _validateProps(props) {
113
- if (this._isStateful()) {
114
- return;
115
- }
116
-
117
- // eslint-disable-next-line no-unused-vars
118
- const { navigation, screenProps, theme, ...containerProps } = props;
119
-
120
- const keys = Object.keys(containerProps);
121
-
122
- if (keys.length !== 0) {
123
- throw new Error('This navigator has both navigation and container props, so it is ' + `unclear if it should own its own state. Remove props: "${keys.join(', ')}" ` + 'if the navigator should get its state from the navigation prop. If the ' + 'navigator should maintain its own state, do not pass a navigation prop.');
124
- }
125
- }
126
-
127
113
  _handleOpenURL = ({ url }) => {
128
114
  const { enableURLHandling, uriPrefix } = this.props;
129
115
  if (enableURLHandling === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-navigation/native",
3
- "version": "3.6.1",
3
+ "version": "3.6.2",
4
4
  "description": "React Native support for React Navigation",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -34,6 +34,7 @@ function validateProps(props) {
34
34
  screenProps,
35
35
  persistNavigationState,
36
36
  loadNavigationState,
37
+ theme,
37
38
  ...containerProps
38
39
  } = props;
39
40
  /* eslint-enable no-unused-vars */
@@ -142,28 +143,6 @@ export default function createNavigationContainer(Component) {
142
143
  return isStateful(this.props);
143
144
  }
144
145
 
145
- _validateProps(props) {
146
- if (this._isStateful()) {
147
- return;
148
- }
149
-
150
- // eslint-disable-next-line no-unused-vars
151
- const { navigation, screenProps, theme, ...containerProps } = props;
152
-
153
- const keys = Object.keys(containerProps);
154
-
155
- if (keys.length !== 0) {
156
- throw new Error(
157
- 'This navigator has both navigation and container props, so it is ' +
158
- `unclear if it should own its own state. Remove props: "${keys.join(
159
- ', '
160
- )}" ` +
161
- 'if the navigator should get its state from the navigation prop. If the ' +
162
- 'navigator should maintain its own state, do not pass a navigation prop.'
163
- );
164
- }
165
- }
166
-
167
146
  _handleOpenURL = ({ url }) => {
168
147
  const { enableURLHandling, uriPrefix } = this.props;
169
148
  if (enableURLHandling === false) {