Fix form keyboard issues and sticky footers in agent screens

This commit is contained in:
Abin Toppo
2026-05-26 16:34:05 +05:30
commit 9ac5e95d52
410 changed files with 86650 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
import React, { memo, type PropsWithChildren } from 'react';
import {
StyleSheet,
View,
type StyleProp,
type ViewStyle,
} from 'react-native';
import { useTheme } from '../../theme';
interface CardProps extends PropsWithChildren {
style?: StyleProp<ViewStyle>;
variant?: 'default' | 'glass';
}
const CardComponent = ({ children, style, variant = 'default' }: CardProps) => {
const theme = useTheme();
return (
<View
style={[
styles.card,
theme.shadows.soft,
{
backgroundColor: variant === 'glass' ? theme.colors.cardGlass : theme.colors.surface,
borderColor: theme.colors.cardBorder,
borderRadius: theme.radius.lg,
},
style,
]}
>
{children}
</View>
);
};
const styles = StyleSheet.create({
card: {
borderWidth: 1,
padding: 18,
},
});
export const Card = memo(CardComponent);