Skip to content

Commit

Permalink
chore: updated example styling
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Sep 9, 2022
1 parent 3b75d5d commit 1e99e8d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
1 change: 1 addition & 0 deletions example/app/src/components/contactList/styles.ts
Expand Up @@ -9,6 +9,7 @@ export const styles = StyleSheet.create({
sectionHeaderTitle: {
fontSize: 16,
textTransform: 'uppercase',
color: 'black',
},
container: {
overflow: 'visible',
Expand Down
9 changes: 2 additions & 7 deletions example/app/src/screens/advanced/DynamicSnapPointExample.tsx
Expand Up @@ -4,7 +4,6 @@ import BottomSheet, {
BottomSheetView,
useBottomSheetDynamicSnapPoints,
} from '@gorhom/bottom-sheet';
import { useShowcaseTheme } from '@gorhom/showcase-template';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { Button } from '../../components/button';

Expand All @@ -22,7 +21,6 @@ const DynamicSnapPointExample = () => {
animatedContentHeight,
handleContentLayout,
} = useBottomSheetDynamicSnapPoints(initialSnapPoints);
const { dark } = useShowcaseTheme();

// callbacks
const handleIncreaseContentPress = useCallback(() => {
Expand Down Expand Up @@ -53,10 +51,6 @@ const DynamicSnapPointExample = () => {
}),
[count]
);
const messageStyle = useMemo(
() => [styles.message, { color: dark ? 'white' : 'black' }],
[dark]
);

// renders
return (
Expand All @@ -75,7 +69,7 @@ const DynamicSnapPointExample = () => {
style={contentContainerStyle}
onLayout={handleContentLayout}
>
<Text style={messageStyle}>
<Text style={styles.message}>
Could this sheet resize to its content height ?
</Text>
<View style={emojiContainerStyle}>
Expand Down Expand Up @@ -103,6 +97,7 @@ const styles = StyleSheet.create({
fontSize: 24,
fontWeight: '600',
marginBottom: 12,
color: 'black',
},
emoji: {
fontSize: 156,
Expand Down
9 changes: 2 additions & 7 deletions example/app/src/screens/modal/DynamicSnapPointExample.tsx
Expand Up @@ -5,7 +5,6 @@ import {
BottomSheetView,
useBottomSheetDynamicSnapPoints,
} from '@gorhom/bottom-sheet';
import { useShowcaseTheme } from '@gorhom/showcase-template';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { Button } from '../../components/button';
import { withModalProvider } from './withModalProvider';
Expand All @@ -24,7 +23,6 @@ const DynamicSnapPointExample = () => {
animatedContentHeight,
handleContentLayout,
} = useBottomSheetDynamicSnapPoints(initialSnapPoints);
const { dark } = useShowcaseTheme();

// callbacks
const handleIncreaseContentPress = useCallback(() => {
Expand Down Expand Up @@ -56,10 +54,6 @@ const DynamicSnapPointExample = () => {
}),
[count]
);
const messageStyle = useMemo(
() => [styles.message, { color: dark ? 'white' : 'black' }],
[dark]
);

// renders
return (
Expand All @@ -77,7 +71,7 @@ const DynamicSnapPointExample = () => {
style={contentContainerStyle}
onLayout={handleContentLayout}
>
<Text style={messageStyle}>
<Text style={styles.message}>
Could this sheet modal resize to its content height ?
</Text>
<View style={emojiContainerStyle}>
Expand Down Expand Up @@ -105,6 +99,7 @@ const styles = StyleSheet.create({
fontSize: 24,
fontWeight: '600',
marginBottom: 12,
color: 'black',
},
emoji: {
fontSize: 156,
Expand Down

0 comments on commit 1e99e8d

Please sign in to comment.