suna/apps/mobile/components/KeyboardAvoidingContainer.tsx

18 lines
413 B
TypeScript
Raw Permalink Normal View History

2025-06-21 05:26:22 +08:00
import React from 'react';
import Animated from 'react-native-reanimated';
2025-06-17 04:21:36 +08:00
interface KeyboardAvoidingContainerProps {
children: React.ReactNode;
style?: any;
}
export const KeyboardAvoidingContainer: React.FC<KeyboardAvoidingContainerProps> = ({
children,
style,
}) => {
return (
2025-06-21 05:26:22 +08:00
<Animated.View style={[{ flex: 1 }, style]}>
2025-06-17 04:21:36 +08:00
{children}
</Animated.View>
);
};