Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

feat: support reanimated v3 #14

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 68 additions & 32 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,27 @@ PODS:
- DoubleConversion (1.1.6)
- EXApplication (5.1.1):
- ExpoModulesCore
- EXAV (13.2.1):
- ExpoModulesCore
- ReactCommon/turbomodule/core
- EXConstants (14.2.1):
- ExpoModulesCore
- EXFileSystem (15.2.2):
- ExpoModulesCore
- EXFont (11.1.1):
- ExpoModulesCore
- Expo (48.0.10):
- Expo (48.0.15):
- ExpoModulesCore
- ExpoImage (1.2.1):
- ExpoModulesCore
- SDWebImage (~> 5.15.0)
- SDWebImageAVIFCoder (~> 0.9.4)
- SDWebImageSVGCoder (~> 1.6.1)
- SDWebImageWebPCoder (~> 0.9.1)
- ExpoKeepAwake (12.0.1):
- ExpoModulesCore
- ExpoModulesCore (1.2.6):
- React-Core
- React-RCTAppDelegate
- ReactCommon/turbomodule/core
- EXSplashScreen (0.18.1):
- EXSplashScreen (0.18.2):
- ExpoModulesCore
- React-Core
- FBLazyVector (0.71.6)
Expand All @@ -36,7 +39,16 @@ PODS:
- hermes-engine (0.71.6):
- hermes-engine/Pre-built (= 0.71.6)
- hermes-engine/Pre-built (0.71.6)
- libaom (2.0.2):
- libvmaf
- libavif (0.10.1):
- libavif/libaom (= 0.10.1)
- libavif/core (0.10.1)
- libavif/libaom (0.10.1):
- libaom (>= 2.0.0)
- libavif/core
- libevent (2.1.12)
- libvmaf (2.2.0)
- libwebp (1.2.4):
- libwebp/demux (= 1.2.4)
- libwebp/mux (= 1.2.4)
Expand All @@ -47,9 +59,12 @@ PODS:
- libwebp/demux
- libwebp/webp (1.2.4)
- lottie-ios (3.5.0)
- lottie-react-native (6.0.0-rc.3):
- lottie-react-native (6.0.0-rc.5):
- lottie-ios (~> 3.5.0)
- React-Core
- PromisesObjC (2.2.0)
- PromisesSwift (2.2.0):
- PromisesObjC (= 2.2.0)
- RCT-Folly (2021.07.22.00):
- boost
- DoubleConversion
Expand Down Expand Up @@ -303,12 +318,18 @@ PODS:
- glog
- react-native-orientation-locker (1.5.0):
- React-Core
- react-native-safe-area-context (4.5.1):
- react-native-safe-area-context (4.5.2):
- RCT-Folly
- RCTRequired
- RCTTypeSafety
- React-Core
- ReactCommon/turbomodule/core
- react-native-video (6.0.0-alpha.6):
- React-Core
- react-native-video/Video (= 6.0.0-alpha.6)
- react-native-video/Video (6.0.0-alpha.6):
- PromisesSwift
- React-Core
- React-perflogger (0.71.6)
- React-RCTActionSheet (0.71.6):
- React-Core/RCTActionSheetHeaders (= 0.71.6)
Expand Down Expand Up @@ -393,13 +414,9 @@ PODS:
- React-jsi (= 0.71.6)
- React-logger (= 0.71.6)
- React-perflogger (= 0.71.6)
- RNFastImage (8.6.3):
- React-Core
- SDWebImage (~> 5.11.1)
- SDWebImageWebPCoder (~> 0.8.4)
- RNGestureHandler (2.9.0):
- React-Core
- RNReanimated (3.0.2):
- RNReanimated (3.1.0):
- DoubleConversion
- FBLazyVector
- FBReactNativeSpec
Expand Down Expand Up @@ -431,23 +448,28 @@ PODS:
- React-RCTImage
- RNSVG (13.9.0):
- React-Core
- SDWebImage (5.11.1):
- SDWebImage/Core (= 5.11.1)
- SDWebImage/Core (5.11.1)
- SDWebImageWebPCoder (0.8.5):
- SDWebImage (5.15.6):
- SDWebImage/Core (= 5.15.6)
- SDWebImage/Core (5.15.6)
- SDWebImageAVIFCoder (0.9.5):
- libavif (>= 0.9.1)
- SDWebImage (~> 5.10)
- SDWebImageSVGCoder (1.6.1):
- SDWebImage/Core (~> 5.6)
- SDWebImageWebPCoder (0.9.1):
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.10)
- SDWebImage/Core (~> 5.13)
- Yoga (1.14.0)

DEPENDENCIES:
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- EXApplication (from `../node_modules/expo-application/ios`)
- EXAV (from `../node_modules/expo-av/ios`)
- EXConstants (from `../node_modules/expo-constants/ios`)
- EXFileSystem (from `../node_modules/expo-file-system/ios`)
- EXFont (from `../node_modules/expo-font/ios`)
- Expo (from `../node_modules/expo`)
- ExpoImage (from `../node_modules/expo-image/ios`)
- ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
- ExpoModulesCore (from `../node_modules/expo-modules-core`)
- EXSplashScreen (from `../node_modules/expo-splash-screen/ios`)
Expand All @@ -474,6 +496,7 @@ DEPENDENCIES:
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- react-native-orientation-locker (from `../node_modules/react-native-orientation-locker`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
- react-native-video (from `../node_modules/react-native-video`)
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
- React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
Expand All @@ -487,7 +510,6 @@ DEPENDENCIES:
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
- React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- RNFastImage (from `../node_modules/react-native-fast-image`)
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
Expand All @@ -497,10 +519,17 @@ DEPENDENCIES:
SPEC REPOS:
trunk:
- fmt
- libaom
- libavif
- libevent
- libvmaf
- libwebp
- lottie-ios
- PromisesObjC
- PromisesSwift
- SDWebImage
- SDWebImageAVIFCoder
- SDWebImageSVGCoder
- SDWebImageWebPCoder

EXTERNAL SOURCES:
Expand All @@ -510,8 +539,6 @@ EXTERNAL SOURCES:
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
EXApplication:
:path: "../node_modules/expo-application/ios"
EXAV:
:path: "../node_modules/expo-av/ios"
EXConstants:
:path: "../node_modules/expo-constants/ios"
EXFileSystem:
Expand All @@ -520,6 +547,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/expo-font/ios"
Expo:
:path: "../node_modules/expo"
ExpoImage:
:path: "../node_modules/expo-image/ios"
ExpoKeepAwake:
:path: "../node_modules/expo-keep-awake/ios"
ExpoModulesCore:
Expand Down Expand Up @@ -568,6 +597,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-orientation-locker"
react-native-safe-area-context:
:path: "../node_modules/react-native-safe-area-context"
react-native-video:
:path: "../node_modules/react-native-video"
React-perflogger:
:path: "../node_modules/react-native/ReactCommon/reactperflogger"
React-RCTActionSheet:
Expand All @@ -594,8 +625,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
ReactCommon:
:path: "../node_modules/react-native/ReactCommon"
RNFastImage:
:path: "../node_modules/react-native-fast-image"
RNGestureHandler:
:path: "../node_modules/react-native-gesture-handler"
RNReanimated:
Expand All @@ -611,23 +640,28 @@ SPEC CHECKSUMS:
boost: 57d2868c099736d80fcd648bf211b4431e51a558
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
EXApplication: d8f53a7eee90a870a75656280e8d4b85726ea903
EXAV: f1f69397ecdcf44cfacd4ff5d338cd1b96891e87
EXConstants: f348da07e21b23d2b085e270d7b74f282df1a7d9
EXFileSystem: 844e86ca9b5375486ecc4ef06d3838d5597d895d
EXFont: 6ea3800df746be7233208d80fe379b8ed74f4272
Expo: b04d142a2b477a391b47c62d179c1a9e1140e6ad
Expo: 62bba165c9cd30a2983176e7d975ae688b6334b6
ExpoImage: 09d394e082cdd18d946f10a522d566dfca019fb8
ExpoKeepAwake: 69f5f627670d62318410392d03e0b5db0f85759a
ExpoModulesCore: 6e0259511f4c4341b6b8357db393624df2280828
EXSplashScreen: cd7fb052dff5ba8311d5c2455ecbebffe1b7a8ca
EXSplashScreen: 0e0a9ba0cf7553094e93213099bd7b42e6e237e9
FBLazyVector: a83ceaa8a8581003a623facdb3c44f6d4f342ac5
FBReactNativeSpec: 85eee79837cb797ab6176f0243a2b40511c09158
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
hermes-engine: b434cea529ad0152c56c7cb6486b0c4c0b23b5de
libaom: 9bb51e0f8f9192245e3ca2a1c9e4375d9cbccc52
libavif: e242998ccec1c83bcba0bbdc256f460ad5077348
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
libvmaf: 8d61aabc2f4ed3e6591cf7406fa00a223ec11289
libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef
lottie-ios: c55158d67d0629a260625cc2ded2052b829e3c3e
lottie-react-native: 4b07ce6d17647dd24641ae5cd7ae614034318456
lottie-react-native: 4cf767e45fd47d4880ddbe2a2d595073bb82d7c0
PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef
PromisesSwift: cf9eb58666a43bbe007302226e510b16c1e10959
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
RCTRequired: 5c6fd63b03abb06947d348dadac51c93e3485bd8
RCTTypeSafety: 1c66daedd66f674e39ce9f40782f0d490c78b175
Expand All @@ -643,7 +677,8 @@ SPEC CHECKSUMS:
React-jsinspector: d5ce2ef3eb8fd30c28389d0bc577918c70821bd6
React-logger: 9332c3e7b4ef007a0211c0a9868253aac3e1da82
react-native-orientation-locker: 851f6510d8046ea2f14aa169b1e01fcd309a94ba
react-native-safe-area-context: f5549f36508b1b7497434baa0cd97d7e470920d4
react-native-safe-area-context: 1d596539b05a78f2b346e954e7c577f6f9be7544
react-native-video: fee89269ad07556d960721f3b62e39be6ace3c90
React-perflogger: 43392072a5b867a504e2b4857606f8fc5a403d7f
React-RCTActionSheet: c7b67c125bebeda9fb19fc7b200d85cb9d6899c4
React-RCTAnimation: c2de79906f607986633a7114bee44854e4c7e2f5
Expand All @@ -657,13 +692,14 @@ SPEC CHECKSUMS:
React-RCTVibration: 73d201599a64ea14b4e0b8f91b64970979fd92e6
React-runtimeexecutor: 8692ac548bec648fa121980ccb4304afd136d584
ReactCommon: 0c43eaeaaee231d7d8dc24fc5a6e4cf2b75bf196
RNFastImage: 5c9c9fed9c076e521b3f509fe79e790418a544e8
RNGestureHandler: 071d7a9ad81e8b83fe7663b303d132406a7d8f39
RNReanimated: f0dd6b881808e635ef0673f89642937d6c141314
RNReanimated: b1220a0e5168745283ff5d53bfc7d2144b2cee1b
RNScreens: 218801c16a2782546d30bd2026bb625c0302d70f
RNSVG: 53c661b76829783cdaf9b7a57258f3d3b4c28315
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
SDWebImage: d47d81bea8a77187896b620dc79c3c528e8906b9
SDWebImageAVIFCoder: d759e21cf4efb640cc97250566aa556ad8bb877c
SDWebImageSVGCoder: 6fc109f9c2a82ab44510fff410b88b1a6c271ee8
SDWebImageWebPCoder: 18503de6621dd2c420d680e33d46bf8e1d5169b0
Yoga: ba09b6b11e6139e3df8229238aa794205ca6a02a

PODFILE CHECKSUM: ebdde30ea74482ef7360f7e78e0dba97b7d5a4ed
Expand Down
8 changes: 4 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@
"web": "expo start --web"
},
"dependencies": {
"@gorhom/bottom-sheet": "^4",
"@gorhom/bottom-sheet": "5.0.0-alpha.0",
"@gorhom/portal": "^1.0.12",
"@react-navigation/bottom-tabs": "^6.2.0",
"@react-navigation/native": "^6.0.6",
"@react-navigation/native-stack": "^6.2.5",
"babel-plugin-module-resolver": "^5.0.0",
"expo": "~48.0.10",
"expo-image": "^1.2.1",
"expo-splash-screen": "~0.18.1",
"expo-status-bar": "~1.4.4",
"lottie-react-native": "^6.0.0-rc.3",
"react": "18.2.0",
"react-native": "0.71.6",
"react-native-awesome-slider": "^2.4.0",
"react-native-fast-image": "^8.5.11",
"react-native-gesture-handler": "^2.9.0",
"react-native-inkwell": "^0.4.5",
"react-native-orientation-locker": "^1.4.0",
"react-native-reanimated": "^3.0.2",
"react-native-reanimated": "^3.1.0",
"react-native-redash": "^18.1.0",
"react-native-safe-area-context": "^4.2.2",
"react-native-screens": "^3.10.1",
"react-native-svg": "^13.9.0",
"react-native-video": "^5.2.1"
"react-native-video": "alpha"
},
"devDependencies": {
"@babel/core": "^7.20.0"
Expand Down
7 changes: 3 additions & 4 deletions example/src/screens/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useTheme } from '@react-navigation/native';
import React, { useContext } from 'react';
import { ScrollView, TouchableHighlight, View } from 'react-native';
import FastImage from 'react-native-fast-image';
import { Image } from 'expo-image';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { Text } from '../components';
import { videos } from '../constants';
Expand Down Expand Up @@ -33,7 +33,7 @@ export const Example = () => {
underlayColor={dark ? 'rgba(0,0,0,.2)' : 'rgba(255,255,255,.2)'}
key={`${i}`}>
<View style={{ paddingBottom: 12 }}>
<FastImage
<Image
source={{
uri: item.cover,
}}
Expand All @@ -46,15 +46,14 @@ export const Example = () => {
flexDirection: 'row',
alignItems: 'center',
}}>
<FastImage
<Image
source={{ uri: item.avatar }}
style={{
width: 40,
height: 40,
borderRadius: 40,
marginRight: 8,
}}
resizeMode="stretch"
/>
<View style={{ flex: 1 }}>
<Text
Expand Down
6 changes: 3 additions & 3 deletions example/src/screens/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const VideoScreen = ({
const DISMISS_POINT = height - 45 - insets.bottom;
const SNAP_POINT = [
0,
height + StatusBarHeight - 40 - VIDEO_MIN_HEIGHT - insets.bottom,
height + StatusBarHeight - 50 - VIDEO_MIN_HEIGHT - insets.bottom,
];
const diasbled = Boolean(store.snapPoint > SNAP_POINT[0]);
const paused = Boolean(store.paused || store.snapPoint === -1);
Expand Down Expand Up @@ -556,7 +556,7 @@ export const VideoScreen = ({
console.log(`onToggleAutoPlay state: ${state}`);
}}
videoDefaultHeight={VIDEO_DEFAULT_HEIGHT}
ref={videoPlayerRef}
// ref={videoPlayerRef}
sliderProps={{
renderBubble: renderBubble,
bubbleTranslateY: -60,
Expand All @@ -566,7 +566,7 @@ export const VideoScreen = ({
}}
videoHeight={videoHeight}
customAnimationStyle={customAnimationStyle}
// onCustomPanGesture={panGesture}
onCustomPanGesture={panGesture}
style={{ marginBottom: sliderTranslateY }}
// resizeMode="cover"
isFullScreen={isFullScreen}
Expand Down
Loading