- react-native 0.54.2 (via expo sdk-26.0.0)
- @types/react-native 0.55.1
- react 16.3.0-alpha.1
- @types/react 16.3.8
- native-base 2.4.1
- typescript 2.7.1
./node_modules/.bin/tsc --pretty command should not return any errors
./node_modules/.bin/tsc --pretty
node_modules/native-base/index.d.ts:482:13 - error TS2430: Interface 'Card' incorrectly extends interface 'ReactListViewProperties'.
Types of property 'ref' are incompatible.
Type 'string | ((instance: ViewProperties | ReactListViewProperties | null) => any) | RefObject<ViewPro...' is not assignable to type 'string | ((instance: (ListViewStatic & ScrollViewStatic & ViewStatic) | null) => any) | RefObject...'.
Type 'RefObject<ViewProperties | ReactListViewProperties>' is not assignable to type 'string | ((instance: (ListViewStatic & ScrollViewStatic & ViewStatic) | null) => any) | RefObject...'.
Type 'RefObject<ViewProperties | ReactListViewProperties>' is not assignable to type 'RefObject<ListViewStatic & ScrollViewStatic & ViewStatic>'.
Type 'ViewProperties | ReactListViewProperties' is not assignable to type 'ListViewStatic & ScrollViewStatic & ViewStatic'.
Type 'ViewProperties' is not assignable to type 'ListViewStatic & ScrollViewStatic & ViewStatic'.
Type 'ViewProperties' is not assignable to type 'ListViewStatic'.
Property 'DataSource' is missing in type 'ViewProperties'.
482 interface Card extends ReactNative.ViewProperties, ReactListViewProperties {
~~~~
Thank you for Native Base and thank you for helping with this issue!
Seeing the same issue.
I had the same issue and I think the problem is with the latest @types/react as opposed to Native Base???
See my working package.json - where I have 2 React Native hacks currently:
Anyway - I'm not any kind of React Native expert - but I hope this helps.
Fixed with 2.4.3
Most helpful comment
I had the same issue and I think the problem is with the latest
@types/reactas opposed to Native Base???See my working package.json - where I have 2 React Native hacks currently:
Anyway - I'm not any kind of React Native expert - but I hope this helps.