Open frankcalise opened 2 years ago
Hi, @frankcalise!
looks like react-native-reanimated
version error.
repalce "react-native-reanimated": "~2.3.1",
to "react-native-reanimated": "2.3.1"
, try again!
Hi @alantoa - I have updated that as you said but am still experiencing the same issue unfortunately. I notice this in the yarn.lock file even after removing it and running yarn install
again:
expo-reanimated-av-player@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/expo-reanimated-av-player/-/expo-reanimated-av-player-0.2.0.tgz#2d8ffbd4c833bf5947e29e702101deca5dbeeeef"
integrity sha512-z4sY3hqkywpKPWR0iWYxFIcrJWMg2OcQ09A6FE8wvCbxQgGYs3kEMYJJ+XgxeDbIZdltKTzwzyzI7LStE3eelA==
dependencies:
"@react-navigation/core" "^6.2.1"
expo-screen-orientation "~4.1.1"
lottie-react-native "^5.0.1"
react-native-awesome-slider "^2.0.4"
react-native-gesture-handler "~2.3.2"
react-native-reanimated "~2.6.0"
react-native-safe-area-context "^4.2.4"
react-native-reanimated@2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-2.3.1.tgz#c7abad48f9e6c84610b0d5e270088ecd61750382"
integrity sha512-nzjVqwkB8eeyPKT2KoiA9EEz17ZMFSGMoOTC17Z9b5nE2Z4ZHjHM5EKhY0TlwzXFUuJAE9PhOfxF0wIO/maZSA==
dependencies:
"@babel/plugin-transform-object-assign" "^7.10.4"
"@types/invariant" "^2.2.35"
invariant "^2.2.4"
lodash.isequal "^4.5.0"
mockdate "^3.0.2"
react-native-screens "^3.4.0"
string-hash-64 "^1.0.3"
react-native-reanimated@~2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-2.6.0.tgz#500497339bec2d18fd4979dc07c831997c9aee82"
integrity sha512-TG7u0d1iTx6BRQXhUp9DKEW/9K6169qiX9vweC+qOcVffGSZvjDZ+OyyI0faXIDvcf5LRHAud3mNtO3ANaHRhQ==
dependencies:
"@babel/plugin-transform-object-assign" "^7.16.7"
"@types/invariant" "^2.2.35"
invariant "^2.2.4"
lodash.isequal "^4.5.0"
react-native-screens "^3.11.1"
setimmediate "^1.0.5"
string-hash-64 "^1.0.3"
Seems like there are two versions of the same package?
@frankcalise Hi!
I also use Expo
44, and it works well! https://github.com/alantoa/expo-reanimated-av-player/blob/main/example/package.json
But I don't really recommend you to use the Expo version, because the expo-av
crashing is very serious and expo-screen-orientation
locking the initial orientation is not supported. these are Expo's flaws. I'm using react-native-reanimated-player in my own Expo project.
Although react-native-video
also has problems, the current performance is better than expo-av
.
Alright thanks - maybe I'll start by cloning the example and try to fit it into my app better.
@alantoa what kind of crashes do you have with expo-av? Anyway, I think that all known crash reasons (mainly because exAV queue vs main thread + audio session deactivation forcing lags because of being a sync task) have been resolved with the current expo-av version 11.2.3+
@hirbod
expo-av
I need to pair with expo-screen-orientation
, It does not support locking orientation when first opened App.(This is the main reason, I need lock orientation when AppdidFinishLaunchingWithOptions
)onSeek
and need
etc.(This is not the main reason)The fast seeking issue should be fixed. And setting a really low threshold for seekingPositionMillis will also allow for very fine positioning setting. But I am honestly not sure which API could miss, everything you need should be there. You could use a custom dev client though when you need another orientation library. And we could also raise tickets when something is still missing to get support for this
@hirbod
yeah maybe it can be solved, but now I don't have any video needs yet.
I will check again when expo-av
supports the Fabric
Also Expo 48 please @alantoa
Hello, I'm following the installation instructions and trying to set up the provided Example component. I receive the error below, seems renimated related, have you run into this?
babel.config.js:
VideoScreen.tsx
package.json deps