bbbcf9f586
Adds necessary dependencies including axios and react-native-calendars to pnpm-lock.yaml. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7b0991ce-c7b8-4c82-9acc-fd3f9e762a01 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: dc1266fa-8375-43e1-aca0-9df31350f647 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/86064bd6-c937-4ca5-a5bf-bbef5749fb60/7b0991ce-c7b8-4c82-9acc-fd3f9e762a01/kWnlAIM Replit-Helium-Checkpoint-Created: true
30 lines
724 B
TypeScript
30 lines
724 B
TypeScript
import {
|
|
KeyboardAwareScrollView,
|
|
KeyboardAwareScrollViewProps,
|
|
} from "react-native-keyboard-controller";
|
|
import { Platform, ScrollView, ScrollViewProps } from "react-native";
|
|
|
|
type Props = KeyboardAwareScrollViewProps & ScrollViewProps;
|
|
|
|
export function KeyboardAwareScrollViewCompat({
|
|
children,
|
|
keyboardShouldPersistTaps = "handled",
|
|
...props
|
|
}: Props) {
|
|
if (Platform.OS === "web") {
|
|
return (
|
|
<ScrollView keyboardShouldPersistTaps={keyboardShouldPersistTaps} {...props}>
|
|
{children}
|
|
</ScrollView>
|
|
);
|
|
}
|
|
return (
|
|
<KeyboardAwareScrollView
|
|
keyboardShouldPersistTaps={keyboardShouldPersistTaps}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</KeyboardAwareScrollView>
|
|
);
|
|
}
|