meliorence / meliorence/react-native-image-gallery

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

Open
#92 4 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
717
Forks
298
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in libraries/ViewPaper/index.js at the keyExtractor call, then trace the rendering path from the reported src/containers/RootContainer.tsx location. Reproduce the gallery rendering that emits the warning and confirm the child context value satisfies CellRenderer's expected type without introducing new warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.