react-native-builder-bob
react-native-builder-bob copied to clipboard
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<View> & Readonly<ViewProps>'
Ask your Question
I am creating a library and I am getting this error:
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<View> & Readonly<ViewProps>'
For every children i want to set to a React Native element such as View, Text, Animated.View.
Any idea or suggestion on how can I resolve that?
Same here 😔
Environment:
example/package.json
"dependencies": {
"react": "16.13.1",
"react-native": "0.63.4",
"react-native-reanimated": "^2.8.0"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/runtime": "^7.12.5",
"babel-plugin-module-resolver": "^4.0.0",
"metro-react-native-babel-preset": "^0.64.0"
}
/package.json
"devDependencies": {
"@commitlint/config-conventional": "^11.0.0",
"@react-native-community/eslint-config": "^2.0.0",
"@release-it/conventional-changelog": "^2.0.0",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.19",
"@types/react-native": "0.62.13",
"commitlint": "^11.0.0",
"eslint": "^7.2.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^3.1.3",
"husky": "^6.0.0",
"jest": "^26.0.1",
"pod-install": "^0.1.0",
"prettier": "^2.0.5",
"react": "16.13.1",
"react-native": "0.63.4",
"react-native-builder-bob": "^0.18.0",
"react-native-reanimated": "^2.8.0",
"release-it": "^14.2.2",
"typescript": "^4.1.3"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-reanimated": "^2.8.0"
},
Base builder-bob installation and just installed reanimated2
you can solve this by updating types for react native
yarn add @types/react-native -D