Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?native base

I have this warning when starting a new expo native base js project native base 3.2.0 expo 4.12.0 every package is good no problem when running the project has this error:-

at node_modules/react/cjs/react.development.js:315:4 in printWarning
at node_modules/react/cjs/react.development.js:287:16 in error
at node_modules/react/cjs/react.development.js:1424:13 in forwardRef
at node_modules/native-base/src/components/composites/Skeleton/SkeletonCircle.tsx:12:20 in <global>
at node_modules/native-base/src/components/composites/Skeleton/index.tsx:3:0 in <global>
at node_modules/native-base/src/components/composites/index.ts:37:0 in <global>
at node_modules/native-base/src/index.tsx:7:0 in <global>
at App.js:2:0 in <global>
at node_modules/expo/AppEntry.js:3:0 in <global>
at http://packager.gi-qyq.anonymous.my-furniture.exp.direct/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&minify=false:202324:3 in global code````
like image 317
Ahmed__Anter Avatar asked Sep 24 '21 14:09

Ahmed__Anter


1 Answers

Update native-base to 3.2.1.

"dependencies": {
     "native-base": "^3.2.1"  
},
like image 53
Greñas Carreño Avatar answered Oct 05 '22 10:10

Greñas Carreño