fix lint
This commit is contained in:
@@ -274,14 +274,6 @@ export const ScrollableInner = forwardRef<ScrollView, DialogInnerProps>(
|
|||||||
const {nativeSnapPoint, disableDrag, setDisableDrag, type} =
|
const {nativeSnapPoint, disableDrag, setDisableDrag, type} =
|
||||||
useDialogContext()
|
useDialogContext()
|
||||||
|
|
||||||
if (type === 'alert') {
|
|
||||||
return (
|
|
||||||
<View style={[a.p_2xl, contentContainerStyle]} {...props}>
|
|
||||||
{header}
|
|
||||||
{children}
|
|
||||||
</View>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
const isAtMaxSnapPoint = nativeSnapPoint === BottomSheetSnapPoint.Full
|
const isAtMaxSnapPoint = nativeSnapPoint === BottomSheetSnapPoint.Full
|
||||||
const insets = useSafeAreaInsets()
|
const insets = useSafeAreaInsets()
|
||||||
const [keyboardHeight, setKeyboardHeight] = useState(() =>
|
const [keyboardHeight, setKeyboardHeight] = useState(() =>
|
||||||
@@ -294,6 +286,15 @@ export const ScrollableInner = forwardRef<ScrollView, DialogInnerProps>(
|
|||||||
useOnKeyboard('keyboardDidShow', keyboardEventHandler)
|
useOnKeyboard('keyboardDidShow', keyboardEventHandler)
|
||||||
useOnKeyboard('keyboardDidHide', keyboardEventHandler)
|
useOnKeyboard('keyboardDidHide', keyboardEventHandler)
|
||||||
|
|
||||||
|
if (type === 'alert') {
|
||||||
|
return (
|
||||||
|
<View style={[a.p_2xl, contentContainerStyle]} {...props}>
|
||||||
|
{header}
|
||||||
|
{children}
|
||||||
|
</View>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
const onScroll = (e: NativeSyntheticEvent<NativeScrollEvent>) => {
|
const onScroll = (e: NativeSyntheticEvent<NativeScrollEvent>) => {
|
||||||
if (!IS_ANDROID) {
|
if (!IS_ANDROID) {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user