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

Invalid prop XXX of type YYY supplied to "ZZZ", expected instance of Element. #249

Open
xkungfu opened this issue Dec 18, 2020 · 0 comments

Comments

@xkungfu
Copy link

xkungfu commented Dec 18, 2020

react-native-modals 0.21.1
offical example:
https://github.com/jacklam718/react-native-modals/tree/master/example

index.js:1 Warning: Failed prop type: Invalid propchildren[0]of typeObjectsupplied toModalActionList, expected instance of Element`.
in ModalActionList (at App.js:143)
in App (created by ExpoRootComponent)
in ExpoRootComponent (created by RootComponent)
in RootComponent
in div (created by View)
in View (created by AppContainer)
in div (created by View)
in View (created by AppContainer)
in AppContainer
function.console.(anonymous function) @ index.js:1
printWarning @ checkPropTypes.js:20
checkPropTypes @ checkPropTypes.js:82
validatePropTypes @ react.development.js:1714
createElementWithValidation @ react.development.js:1813
render @ App.js:142
finishClassComponent @ react-dom.development.js:17160
updateClassComponent @ react-dom.development.js:17110
beginWork @ react-dom.development.js:18620
beginWork$1 @ react-dom.development.js:23179
performUnitOfWork @ react-dom.development.js:22157
workLoopSync @ react-dom.development.js:22130
performSyncWorkOnRoot @ react-dom.development.js:21756
scheduleUpdateOnFiber @ react-dom.development.js:21188
updateContainer @ react-dom.development.js:24373
(anonymous) @ react-dom.development.js:24758
unbatchedUpdates @ react-dom.development.js:21903
legacyRenderSubtreeIntoContainer @ react-dom.development.js:24757
render @ react-dom.development.js:24840
renderApplication @ renderApplication.js:23
run @ index.js:51
runApplication @ index.js:95
registerRootComponent @ registerRootComponent.web.tsx:14
../../../../../../../../home/datad/jsroot/test/react-native-modal-example/node_modules/expo/AppEntry.js @ AppEntry.js:5
webpack_require @ bootstrap:789
fn @ bootstrap:100
1 @ log.js:59
webpack_require @ bootstrap:789
(anonymous) @ bootstrap:856
(anonymous) @ bootstrap:856

index.js:1 Warning: Failed prop type: Invalid prop modalTitle of type Object supplied to BaseModal, expected instance of Element.
in BaseModal (at App.js:127)
in App (created by ExpoRootComponent)
in ExpoRootComponent (created by RootComponent)
in RootComponent
in div (created by View)
in View (created by AppContainer)
in div (created by View)
in View (created by AppContainer)
in AppContainer
function.console.(anonymous function) @ index.js:1
printWarning @ checkPropTypes.js:20
checkPropTypes @ checkPropTypes.js:82
validatePropTypes @ react.development.js:1714
createElementWithValidation @ react.development.js:1813
render @ App.js:117
finishClassComponent @ react-dom.development.js:17160
updateClassComponent @ react-dom.development.js:17110
beginWork @ react-dom.development.js:18620
beginWork$1 @ react-dom.development.js:23179
performUnitOfWork @ react-dom.development.js:22157
workLoopSync @ react-dom.development.js:22130
performSyncWorkOnRoot @ react-dom.development.js:21756
scheduleUpdateOnFiber @ react-dom.development.js:21188
updateContainer @ react-dom.development.js:24373
(anonymous) @ react-dom.development.js:24758
unbatchedUpdates @ react-dom.development.js:21903
legacyRenderSubtreeIntoContainer @ react-dom.development.js:24757
render @ react-dom.development.js:24840
renderApplication @ renderApplication.js:23
run @ index.js:51
runApplication @ index.js:95
registerRootComponent @ registerRootComponent.web.tsx:14
../../../../../../../../home/datad/jsroot/test/react-native-modal-example/node_modules/expo/AppEntry.js @ AppEntry.js:5
webpack_require @ bootstrap:789
fn @ bootstrap:100
1 @ log.js:59
webpack_require @ bootstrap:789
(anonymous) @ bootstrap:856
(anonymous) @ bootstrap:856

index.js:1 Warning: Failed prop type: Invalid prop footer of type Object supplied to BaseModal, expected instance of Node.
in BaseModal (at App.js:127)
in App (created by ExpoRootComponent)
in ExpoRootComponent (created by RootComponent)
in RootComponent
in div (created by View)
in View (created by AppContainer)
in div (created by View)
in View (created by AppContainer)
in AppContainer
function.console.(anonymous function) @ index.js:1
printWarning @ checkPropTypes.js:20
checkPropTypes @ checkPropTypes.js:82
validatePropTypes @ react.development.js:1714
createElementWithValidation @ react.development.js:1813
render @ App.js:117
finishClassComponent @ react-dom.development.js:17160
updateClassComponent @ react-dom.development.js:17110
beginWork @ react-dom.development.js:18620
beginWork$1 @ react-dom.development.js:23179
performUnitOfWork @ react-dom.development.js:22157
workLoopSync @ react-dom.development.js:22130
performSyncWorkOnRoot @ react-dom.development.js:21756
scheduleUpdateOnFiber @ react-dom.development.js:21188
updateContainer @ react-dom.development.js:24373
(anonymous) @ react-dom.development.js:24758
unbatchedUpdates @ react-dom.development.js:21903
legacyRenderSubtreeIntoContainer @ react-dom.development.js:24757
render @ react-dom.development.js:24840
renderApplication @ renderApplication.js:23
run @ index.js:51
runApplication @ index.js:95
registerRootComponent @ registerRootComponent.web.tsx:14
../../../../../../../../home/datad/jsroot/test/react-native-modal-example/node_modules/expo/AppEntry.js @ AppEntry.js:5
webpack_require @ bootstrap:789
fn @ bootstrap:100
1 @ log.js:59
webpack_require @ bootstrap:789
(anonymous) @ bootstrap:856
(anonymous) @ bootstrap:856

index.js:1 Warning: Failed prop type: Invalid prop modalTitle of type Object supplied to BottomModal, expected instance of Element.
in BottomModal (at App.js:310)
in App (created by ExpoRootComponent)
in ExpoRootComponent (created by RootComponent)
in RootComponent
in div (created by View)
in View (created by AppContainer)
in div (created by View)
in View (created by AppContainer)
in AppContainer
`

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

No branches or pull requests

1 participant