diff --git a/example/android/gradle.properties b/example/android/gradle.properties index a46a5b9..99fc223 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -34,7 +34,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 # your application. You should enable this flag either if you want # to write custom TurboModules/Fabric components OR use libraries that # are providing them. -newArchEnabled=false +newArchEnabled=true # Use this property to enable or disable the Hermes JS engine. # If set to false, you will be using JSC instead. diff --git a/example/src/App.tsx b/example/src/App.tsx index bbff416..cb149d8 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -1,6 +1,6 @@ import React, { useEffect } from 'react'; -import { Image, View, ScrollView } from 'react-native'; +import { Image, View, ScrollView, Text } from 'react-native'; import { ShadowedView, shadowStyle } from 'react-native-fast-shadow'; import Animated, { useSharedValue, @@ -39,8 +39,11 @@ export default function App() { height: `${animatedHeight.value}%`, })); + const uiManager = (global as any)?.nativeFabricUIManager ? 'Fabric' : 'Paper'; + return ( + This View is {uiManager}