import * as React from 'react'; import { View, StyleSheet, ScrollView, Platform } from 'react-native'; import { Button, Paragraph } from 'react-native-paper'; import { RouteProp, ParamListBase, useTheme } from '@react-navigation/native'; import { createStackNavigator, StackNavigationProp, } from '@react-navigation/stack'; import Article from '../Shared/Article'; type SimpleStackParams = { Article: { author: string }; Dialog: undefined; }; type SimpleStackNavigation = StackNavigationProp; const scrollEnabled = Platform.select({ web: true, default: false }); const ArticleScreen = ({ navigation, route, }: { navigation: SimpleStackNavigation; route: RouteProp; }) => { return (
); }; const DialogScreen = ({ navigation, }: { navigation: SimpleStackNavigation; }) => { const { colors } = useTheme(); return ( Mise en place is a French term that literally means “put in place.” It also refers to a way cooks in professional kitchens and restaurants set up their work stations—first by gathering all ingredients for a recipes, partially preparing them (like measuring out and chopping), and setting them all near each other. Setting up mise en place before cooking is another top tip for home cooks, as it seriously helps with organization. It’ll pretty much guarantee you never forget to add an ingredient and save you time from running back and forth from the pantry ten times. ); }; const SimpleStack = createStackNavigator(); type Props = Partial> & { navigation: StackNavigationProp; }; export default function SimpleStackScreen({ navigation, ...rest }: Props) { navigation.setOptions({ headerShown: false, }); return ( ({ cardStyle: { opacity: progress.interpolate({ inputRange: [0, 0.5, 0.9, 1], outputRange: [0, 0.25, 0.7, 1], }), transform: [ { scale: progress.interpolate({ inputRange: [0, 1], outputRange: [0.9, 1], extrapolate: 'clamp', }), }, ], }, overlayStyle: { opacity: progress.interpolate({ inputRange: [0, 1], outputRange: [0, 0.5], extrapolate: 'clamp', }), }, }), }} /> ); } const styles = StyleSheet.create({ buttons: { flexDirection: 'row', padding: 8, }, button: { margin: 8, }, container: { flex: 1, alignItems: 'center', justifyContent: 'center', }, dialog: { padding: 16, width: '90%', maxWidth: 400, borderRadius: 3, }, close: { alignSelf: 'flex-end', }, });