react-native-reanimated-bottom-sheet
react-native-reanimated-bottom-sheet copied to clipboard
Typescript ref type error
Did you try to initialize the reference to null?
Using const sheetRef = useRef<BottomSheet>(null); instead of const sheetRef = useRef<BottomSheet>(); solved my issue. Thanks @AugustoMarcelo
Using
const sheetRef = useRef<BottomSheet>(null);instead ofconst sheetRef = useRef<BottomSheet>();solved my issue. Thanks @AugustoMarcelo
When doing this I get this Typescript error
'BottomSheet' refers to a value, but is being used as a type here. Did you mean 'typeof BottomSheet'?
Any idea on how to fix this?
Using
const sheetRef = useRef<BottomSheet>(null);instead ofconst sheetRef = useRef<BottomSheet>();solved my issue. Thanks @AugustoMarceloWhen doing this I get this Typescript error
'BottomSheet' refers to a value, but is being used as a type here. Did you mean 'typeof BottomSheet'?Any idea on how to fix this?
@vpress-admin Did you solve the issue?