Files
solelog/apps/mobile/polyfills/web/scrollview.web.tsx
Bas van Rossem d94d0b188b Initial commit: code as received (Create/Anything export)
Insole-production time tracker exported from the Create/Anything AI
platform. Baseline snapshot before any reverse-engineering or cleanup.

- apps/mobile: Expo Router app (iOS/Android/web), the only workspace
- publisher/: standalone OpenNext/AWS deploy tooling for the web side
- Backend (/api/tasks, /api/logs + DB) lives remotely, not in this repo
2026-06-17 10:19:33 +02:00

24 lines
582 B
TypeScript

import React, { useMemo } from 'react';
import RNScrollView from 'react-native-web/dist/exports/ScrollView';
export const ScrollView = React.forwardRef((props: Record<string, any>, ref: React.Ref<any>) => {
const extendedStyle = useMemo(() => {
if (props.horizontal) {
return [{flexGrow: 0}, props.style]
}
return props.style
}, [props.horizontal, props.style])
return (
<RNScrollView
ref={ref}
{...props}
style={extendedStyle}
/>
);
});
ScrollView.displayName = 'ScrollView';
export default ScrollView;