Skip to content

Commit b99aea8

Browse files
committed
chore: update example
1 parent 6c362e7 commit b99aea8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

example/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
3434
# your application. You should enable this flag either if you want
3535
# to write custom TurboModules/Fabric components OR use libraries that
3636
# are providing them.
37-
newArchEnabled=false
37+
newArchEnabled=true
3838

3939
# Use this property to enable or disable the Hermes JS engine.
4040
# If set to false, you will be using JSC instead.

example/src/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect } from 'react';
22

3-
import { Image, View, ScrollView } from 'react-native';
3+
import { Image, View, ScrollView, Text } from 'react-native';
44
import { ShadowedView, shadowStyle } from 'react-native-fast-shadow';
55
import Animated, {
66
useSharedValue,
@@ -39,8 +39,11 @@ export default function App() {
3939
height: `${animatedHeight.value}%`,
4040
}));
4141

42+
const uiManager = (global as any)?.nativeFabricUIManager ? 'Fabric' : 'Paper';
43+
4244
return (
4345
<ScrollView style={{ backgroundColor: 'white' }}>
46+
<Text style={{fontSize: 18, fontWeight: 'bold'}}>This View is {uiManager}</Text>
4447
<View style={{ margin: 16 }}>
4548
<View style={{ flexDirection: 'row', marginBottom: 20 }}>
4649
<ShadowedView

0 commit comments

Comments
 (0)