GeekyAnts / GeekyAnts/NativeBase
TSC Compile
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Tsc Compile with Bob Builder and Skiplibcheck
### CodeSandbox/Snack link
none
### Steps to reproduce
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
### NativeBase Version
3.4.3
### Platform
- [ ] Android
- [ ] CRA
- [X] Expo
- [ ] iOS
- [ ] Next
### Other Platform
_No response_
### Additional Information
```
Found 37 errors in 18 files.
Errors Files
1 node_modules/native-base/src/components/primitives/Box/index.tsx:100
2 node_modules/native-base/src/components/primitives/Icon/createIcon.tsx:11
2 node_modules/native-base/src/components/primitives/Icon/Icon.tsx:16
4 node_modules/native-base/src/components/primitives/Icon/Icons/questionIconPath.tsx:5
4 node_modules/native-base/src/components/primitives/Icon/SVGIcon.tsx:26
6 node_modules/native-base/src/components/primitives/Icon/types.ts:9
1 node_modules/native-base/src/components/primitives/Pressable/types.ts:1
1 node_modules/native-base/src/components/primitives/Stack/HStack.tsx:23
1 node_modules/native-base/src/components/primitives/Stack/Stack.tsx:86
1 node_modules/native-base/src/components/primitives/Stack/VStack.tsx:24
3 node_modules/native-base/src/components/primitives/Text/index.tsx:92
1 node_modules/native-base/src/factory/component.tsx:19
1 node_modules/native-base/src/utils/addTextAndPropsToStrings.tsx:7
1 node_modules/native-base/src/utils/canUseDom.ts:4
1 node_modules/native-base/src/utils/createContext.tsx:16
5 node_modules/native-base/src/utils/getSpacedChildren.tsx:22
1 node_modules/native-base/src/utils/useResponsiveQuery/ResponsiveQueryProvider.tsx:24
1 node_modules/native-base/src/utils/wrapStringChild.tsx:11
node_modules/native-base/src/utils/getSpacedChildren.tsx:56:5 - error TS2740: Type 'FunctionComponentElement' is missing the following properties from type 'Element': scopeId, children, component, dirs, and 9 more.
56 divider = React.cloneElement(divider, {
~~~~~~~
node_modules/native-base/src/utils/getSpacedChildren.tsx:63:10 - error TS2786: 'React.Fragment' cannot be used as a JSX component.
Its return type 'ReactElement>' is not a valid JSX element.
63
~~~~~~~~~~~~~~
node_modules/native-base/src/utils/getSpacedChildren.tsx:75:10 - error TS2786: 'React.Fragment' cannot be used as a JSX component.
Its return type 'ReactElement>' is not a valid JSX element.
75
~~~~~~~~~~~~~~
node_modules/native-base/src/utils/getSpacedChildren.tsx:78:50 - error TS2786: 'Box' cannot be used as a JSX component.
Its return type 'ReactElement>' is not a valid JSX element.
78 index < childrenArray.length - 1 &&
~~~
node_modules/native-base/src/utils/useResponsiveQuery/ResponsiveQueryProvider.tsx:24:6 - error TS2786: 'ResponsiveQueryContext.Provider' cannot be used as a JSX component.
Its return type 'ReactElement>' is not a valid JSX element.
24
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/native-base/src/utils/wrapStringChild.tsx:11:8 - error TS2786: 'Text' cannot be used as a JSX component.
Its return type 'ReactElement>' is not a valid JSX element.
11 {child}
```
Contributor guide
Assessment
This issue has not been assessed yet.