diff --git a/FabricTestExample/App.js b/FabricTestExample/App.js index 30a2d0ed40..fd561142db 100644 --- a/FabricTestExample/App.js +++ b/FabricTestExample/App.js @@ -81,6 +81,7 @@ import Test1419 from './src/Test1419'; import Test1473 from './src/Test1473'; import Test1476 from './src/Test1476'; import Test1646 from './src/Test1646'; +import Test1649 from './src/Test1649'; enableFreeze(true); diff --git a/FabricTestExample/ios/Podfile.lock b/FabricTestExample/ios/Podfile.lock index dacedcceca..efe2527d81 100644 --- a/FabricTestExample/ios/Podfile.lock +++ b/FabricTestExample/ios/Podfile.lock @@ -728,7 +728,7 @@ PODS: - React-Codegen - React-RCTFabric - ReactCommon/turbomodule/core - - RNReanimated (3.0.0-rc.8): + - RNReanimated (3.0.0-rc.2): - DoubleConversion - FBLazyVector - FBReactNativeSpec @@ -1007,7 +1007,7 @@ SPEC CHECKSUMS: React-runtimeexecutor: 7401c4a40f8728fd89df4a56104541b760876117 ReactCommon: c9246996e73bf75a2c6c3ff15f1e16707cdc2da9 RNGestureHandler: 182b4e135cc4fec4988687e2f123e302dc6b4b71 - RNReanimated: 5fe97ed1710f9d0c90bd97b275c4ba6b58fa9b45 + RNReanimated: a91b2ed2ac39b96a6a024ab55a6b546b1ec10f84 RNScreens: 208223c783496e6d0aa92ffdf307f61d58756fc1 SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608 Yoga: eca980a5771bf114c41a754098cd85e6e0d90ed7 diff --git a/FabricTestExample/src/Test1649.tsx b/FabricTestExample/src/Test1649.tsx new file mode 100644 index 0000000000..80568c15e4 --- /dev/null +++ b/FabricTestExample/src/Test1649.tsx @@ -0,0 +1,196 @@ +/* eslint-disable react/display-name */ +import * as React from 'react'; +import {Button, StyleSheet, View, Text, ScrollView} from 'react-native'; +import {NavigationContainer, ParamListBase} from '@react-navigation/native'; +import { + createNativeStackNavigator, + NativeStackNavigationProp, + NativeStackNavigationOptions +} from 'react-native-screens/native-stack'; +import { SheetDetentTypes } from 'react-native-screens'; + +const Stack = createNativeStackNavigator(); + +export default function App(): JSX.Element { + const initialScreenOptions: NativeStackNavigationOptions = { + stackPresentation: 'formSheet', + sheetAllowedDetents: 'all', + sheetLargestUndimmedDetent: 'medium', + sheetGrabberVisible: false, + sheetCornerRadius: -1, + sheetExpandsWhenScrolledToEdge: true + } + + return ( + + , + headerTitleStyle: { + color: 'cyan', + }, + headerShown: true, + headerHideBackButton: false + }}> + + + + + + + + ); +} + +function First({ + navigation, +}: { + navigation: NativeStackNavigationProp; +}) { + return ( +