From dd068b998267dc37bbbe8efc17a37ad0459fd312 Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Thu, 13 Jun 2024 16:32:26 +0200 Subject: [PATCH] Screen transition example - use proper import from screens instead of mocks --- apps/common-app/src/examples/ScreenTransitionExample.tsx | 8 +------- apps/fabric-example/ios/FabricExample/Info.plist | 2 +- apps/paper-example/ios/ReanimatedExample/Info.plist | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/apps/common-app/src/examples/ScreenTransitionExample.tsx b/apps/common-app/src/examples/ScreenTransitionExample.tsx index 0368322a479..7fce993d607 100644 --- a/apps/common-app/src/examples/ScreenTransitionExample.tsx +++ b/apps/common-app/src/examples/ScreenTransitionExample.tsx @@ -1,4 +1,3 @@ -// @ts-nocheck - It will be removed after release of react-native-screens, because currently 'react-native-screens/gesture-handler' import doesn't exist. import React from 'react'; import { View, StyleSheet, Button } from 'react-native'; import { @@ -10,12 +9,7 @@ import { ScreenTransition, AnimatedScreenTransition, } from 'react-native-reanimated'; - -// This is a temporary workaround until react-native-screens release with 'react-native-screens/gesture-handler' import. -// import { GestureDetectorProvider } from 'react-native-screens/gesture-handler'; -function GestureDetectorProvider({ children }) { - return children; -} +import { GestureDetectorProvider } from 'react-native-screens/gesture-handler'; function MainScreen({ navigation }: NativeStackScreenProps) { return ( diff --git a/apps/fabric-example/ios/FabricExample/Info.plist b/apps/fabric-example/ios/FabricExample/Info.plist index 9dcf48d322d..c8b74f03fc3 100644 --- a/apps/fabric-example/ios/FabricExample/Info.plist +++ b/apps/fabric-example/ios/FabricExample/Info.plist @@ -68,6 +68,6 @@ UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance - + diff --git a/apps/paper-example/ios/ReanimatedExample/Info.plist b/apps/paper-example/ios/ReanimatedExample/Info.plist index b754dc93c81..0994e4d2d5c 100644 --- a/apps/paper-example/ios/ReanimatedExample/Info.plist +++ b/apps/paper-example/ios/ReanimatedExample/Info.plist @@ -69,6 +69,6 @@ UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance - +