Skip to content

Commit

Permalink
🩹 fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
troberts-28 committed Jun 23, 2024
1 parent 0659940 commit 3f34fc0
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ import {
useWindowDimensions,
} from "react-native";
import type { NativeScrollEvent, NativeSyntheticEvent } from "react-native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { FlatList as CustomFlatList } from "react-native-gesture-handler";
import { ScrollView as CustomScrollView } from "react-native-gesture-handler";

import { TimerPicker, TimerPickerModal } from "../src";

Expand Down Expand Up @@ -190,17 +187,14 @@ export default function App() {

const renderExample3 = useMemo(() => {
return (
<CustomScrollView
contentContainerStyle={[
<View
style={[
styles.container,
styles.page3Container,
{ height: 4000 },
]}
nestedScrollEnabled
style={[{ width: screenWidth, flex: 1 }]}>
{ width: screenWidth },
]}>
<TimerPicker
Audio={Audio}
FlatList={CustomFlatList}
Haptics={Haptics}
hourLabel=":"
LinearGradient={LinearGradient}
Expand Down Expand Up @@ -232,7 +226,7 @@ export default function App() {
},
}}
/>
</CustomScrollView>
</View>
);
}, [screenWidth]);

Expand Down Expand Up @@ -341,7 +335,7 @@ export default function App() {
}, [currentPageIndex, screenWidth]);

return (
<GestureHandlerRootView style={{ flex: 1 }}>
<>
<ScrollView
ref={scrollViewRef}
horizontal
Expand All @@ -353,7 +347,7 @@ export default function App() {
{renderExample4}
</ScrollView>
{renderNavigationArrows}
</GestureHandlerRootView>
</>
);
}

Expand Down

0 comments on commit 3f34fc0

Please sign in to comment.