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
24 lines
582 B
TypeScript
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;
|