Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Failed child context type: Invalid child context virtualizedCell.cellKey of type number supplied to CellRenderer, expected string. #92

Open
victorzimnikov opened this issue May 16, 2018 · 4 comments

Comments

@victorzimnikov
Copy link

node_modules/fbjs/lib/warning.js:33:20 in printWarning
- node_modules/fbjs/lib/warning.js:57:25 in warning
- node_modules/prop-types/checkPropTypes.js:52:18 in checkPropTypes
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:11916:8 in processChildContext
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:11970:46 in invalidateContextProvider
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:8852:32 in finishClassComponent
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:8762:6 in updateClassComponent
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:9581:10 in beginWork
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:12924:25 in performUnitOfWork
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:12953:43 in workLoop
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:12996:17 in renderRoot
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:13632:34 in performWorkOnRoot
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:13545:26 in performWork
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:13506:16 in performSyncWork
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:13392:6 in requestWork
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:13259:24 in scheduleWorkImpl
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:13207:28 in scheduleWork
- node_modules/react-native/Libraries/Renderer/ReactNativeRenderer-dev.js:6224:19 in enqueueSetState
- node_modules/react/cjs/react.development.js:238:31 in setState
* src/containers/RootContainer.tsx:100:3 in <unknown>
- node_modules/redux/lib/redux.js:227:6 in dispatch
- node_modules/redux-observable/lib/cjs/createEpicMiddleware.js:85:26 in <unknown>
* src/core/reduxLoggerMiddleware.ts:28:18 in <unknown>
- node_modules/redux/lib/redux.js:569:33 in dispatch
- node_modules/redux-observable/lib/cjs/createEpicMiddleware.js:75:25 in <unknown>
- node_modules/rxjs/Subscriber.js:242:20 in __tryOrUnsub
- node_modules/rxjs/Subscriber.js:189:34 in next
- node_modules/rxjs/Subscriber.js:129:30 in _next
- node_modules/rxjs/Subscriber.js:93:23 in next
- node_modules/rxjs/operators/switchMap.js:126:34 in notifyNext
- node_modules/rxjs/InnerSubscriber.js:23:31 in _next
- node_modules/rxjs/Subscriber.js:93:23 in next
- node_modules/rxjs/operators/mergeMap.js:145:34 in notifyNext
- node_modules/rxjs/InnerSubscriber.js:23:31 in _next
- node_modules/rxjs/Subscriber.js:93:23 in next
- node_modules/rxjs/operators/mergeMap.js:145:34 in notifyNext
- node_modules/rxjs/InnerSubscriber.js:23:31 in _next
- node_modules/rxjs/Subscriber.js:93:23 in next
- node_modules/rxjs/operators/mergeMap.js:145:34 in notifyNext
- node_modules/rxjs/InnerSubscriber.js:23:31 in _next
- node_modules/rxjs/Subscriber.js:93:23 in next
- node_modules/rxjs/Subscriber.js:129:30 in _next
- node_modules/rxjs/Subscriber.js:93:23 in next
- node_modules/rxjs/operators/map.js:85:30 in _next
- node_modules/rxjs/Subscriber.js:93:23 in next
- node_modules/rxjs/operators/map.js:85:30 in _next
- node_modules/rxjs/Subscriber.js:93:23 in next
* src/helpers/HttpClient.ts:195:26 in <unknown>
- node_modules/promise/setimmediate/core.js:37:14 in tryCallOne
- node_modules/promise/setimmediate/core.js:123:25 in <unknown>
- ... 10 more stack frames from framework internals

libraries/ViewPaper/index.js
this.keyExtractor(item, index)

@avocadowastaken
Copy link

Related to #69

@avocadowastaken
Copy link

avocadowastaken commented May 17, 2018

As workaround - you can ignore this warnings in app entry:

if (__DEV__) {
  // eslint-disable-next-line global-require
  require("react-native").YellowBox.ignoreWarnings([
    "Warning: Failed child context type: Invalid child context",
  ]);
}

See: https://facebook.github.io/react-native/docs/debugging.html#in-app-errors-and-warnings

@vt7211
Copy link

vt7211 commented Jan 30, 2019

you must edit in file /node_modules/react-ntive-image-galary/src/libralaries/ViewPager/index.js, edit function keyExtractor ( line 262 ) to
keyExtractor (item, index) { return index.toString() }

@caryyu
Copy link

caryyu commented Jul 21, 2021

PR reference: #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants