Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamad-rizki committed Oct 9, 2024
1 parent 6c362e7 commit b99aea8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -39,8 +39,11 @@ export default function App() {
height: `${animatedHeight.value}%`,
}));

const uiManager = (global as any)?.nativeFabricUIManager ? 'Fabric' : 'Paper';

return (
<ScrollView style={{ backgroundColor: 'white' }}>
<Text style={{fontSize: 18, fontWeight: 'bold'}}>This View is {uiManager}</Text>
<View style={{ margin: 16 }}>
<View style={{ flexDirection: 'row', marginBottom: 20 }}>
<ShadowedView
Expand Down

0 comments on commit b99aea8

Please sign in to comment.