# Using Yarn and CocoaPods
yarn;
cd ios;
bundle install;
bundle exec pod install;
- Select team with paid Apple Developer account
- Change scheme from debug to release at the app target
Connect iPhone (with ProMotion, like iPhone 15 Pro) by a wire, with developer mode enabled to your Mac and give all necessary permissions
Run the application
yarn ios;
You will see two buttons: "Show/Hide"
and "Variation"
, so there are 3 variations:
- native - custom Fabric animated
UIView
: seeExpandableView
in theios
directory andspecs/ExpandableViewNativeComponent
- reanimated - Reanimated View animated by
useSharedValue
andwithTiming
: exploreApp.tsx
for code example - animated - react-native Animated View animated by Animated API: explore
App.tsx
for code example
By pressing the "Variation"
button you change what type of animated modal will show and hide
By pressing the "Show/Hide"
button you activate animations (all logic is in App.tsx
)
You will see how native is significantly better and runs at 120 FPS while Reanimated and React Native Animated run at lower than 60 FPS
Also you can see example.MP4 at root how to use the example