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
This commit is contained in:
23
apps/mobile/polyfills/web/scrollview.web.tsx
Normal file
23
apps/mobile/polyfills/web/scrollview.web.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user