Skip to content

Commit

Permalink
chore: tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Mar 24, 2024
1 parent 93ad0ff commit 1492fe0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
23 changes: 1 addition & 22 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { times } from './utils'
const SAFE_AREA = 80 // use safe-area-context
const CONTENT_PADDING = 16
const FOOTER_HEIGHT = 80
const HEADER_HEIGHT = 64

const DARK = '#282e37'
const DARK_GRAY = '#333b48'
Expand Down Expand Up @@ -77,7 +76,6 @@ export default function App() {
onPresent={() => console.log(`Sheet 2 presented!`)}
FooterComponent={Footer}
>
<Header />
<ScrollView ref={scrollViewRef} contentContainerStyle={$content} indicatorStyle="black">
{times(25, (i) => (
<DemoContent key={i} text={String(i + 1)} />
Expand All @@ -88,7 +86,7 @@ export default function App() {
<TrueSheet
ref={sheet3}
scrollRef={flatListRef}
// sizes={['large']}
sizes={['large']}
onDismiss={() => console.log('Sheet 3 dismissed!')}
onPresent={() => console.log(`Sheet 3 presented!`)}
>
Expand All @@ -112,14 +110,6 @@ const Footer = () => {
)
}

const Header = () => {
return (
<View style={$header}>
<Text style={$whiteText}>HEADER</Text>
</View>
)
}

const Button = (props: ButtonProps) => {
const { text, ...rest } = props
return (
Expand Down Expand Up @@ -150,17 +140,6 @@ const $content: ViewStyle = {
paddingBottom: SAFE_AREA,
}

const $header: ViewStyle = {
position: 'absolute',
zIndex: 1,
left: 0,
right: 0,
height: HEADER_HEIGHT,
backgroundColor: BLUE_DARK,
alignItems: 'center',
justifyContent: 'center',
}

const $footer: ViewStyle = {
height: FOOTER_HEIGHT,
backgroundColor: DARK_GRAY,
Expand Down
1 change: 0 additions & 1 deletion ios/TrueSheetViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,5 @@ @interface RCT_EXTERN_MODULE(TrueSheetViewManager, RCTViewManager)

// Properties
RCT_EXPORT_VIEW_PROPERTY(sizes, NSArray)
RCT_EXPORT_VIEW_PROPERTY(backgroundColor, UIColor)

@end

0 comments on commit 1492fe0

Please sign in to comment.