Comments (6)
- i can make a repo that can have this for you.
- i am using Expo Go
- i see no logs, it just shows on my device (both physical and emulator) it just closes the app
from lottie-react-native.
i am closing this issue now @TheRogue76 and thank you, this works fine after the upgrade, i have to upgrade expo and others along side lottie react. just to help other who might have similar issue, here is my package json:
{ "name": "meeting-app", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web" }, "dependencies": { "@expo/metro-runtime": "~3.1.3", "@react-native-async-storage/async-storage": "^1.22.3", "@react-native-community/slider": "^4.5.0", "@react-native-picker/picker": "^2.6.1", "@react-navigation/drawer": "^6.6.14", "@react-navigation/material-bottom-tabs": "^6.2.27", "@react-navigation/native": "^6.1.16", "@react-navigation/stack": "^6.3.28", "axios": "^1.6.8", "expo": "~50.0.13", "expo-av": "^13.10.5", "expo-linear-gradient": "^12.7.2", "expo-splash-screen": "^0.26.4", "expo-status-bar": "~1.11.1", "lottie-react-native": "^6.7.0", "react": "18.2.0", "react-dom": "18.2.0", "react-native": "0.73.5", "react-native-calendar-strip": "^2.2.6", "react-native-gesture-handler": "~2.14.0", "react-native-paper": "^5.12.3", "react-native-picker-select": "^9.0.1", "react-native-reanimated": "~3.6.2", "react-native-safe-area-context": "^4.9.0", "react-native-web": "~0.19.6" }, "devDependencies": { "@babel/core": "^7.20.0" }, "private": true }
from lottie-react-native.
Hi @Elliotbaz
If you are using Expo with Expo Go, then as far as I remember it was updated to use Lottie version 6 by the time SDK 49 came out (I do not know which version they shipped it with) and it might be the cause of your issue (out of sync native dependencies), and if you are using the development builds, then you have no binding to that. Either way, Lottie V5 is not supported. And considering Apple's upcoming requirements, staying on it is going to cause problems anyway.
Please follow the migration guide (read here) and let us know if that solves the problem.
from lottie-react-native.
hi @TheRogue76, so i have updated my project now
"lottie-react-native": "^6.7.0",
and i have something like this now:
<Lottie
style={styles.lottie}
source={require('../../asserts/animations/splash.json')}
autoPlay
resizeMode="cover"
renderMode='AUTOMATIC'
/>
lottie: {
width: '100%',
height: '100%',
marginRight: '10%',
marginVertical: '-1%'
},
but this as previously works on just ios and not andriod
am i missing anything ?
from lottie-react-native.
Hi @Elliotbaz,
Three questions for you:
- Can you provide a reproducible repository with just Expo 49 and this?
- Are you using Expo go or Expo development builds
- What is the log when it crashes on Android (Logcat preferably, but the rest are appreciated)
from lottie-react-native.
@Elliotbaz Please do. I can take a look at it tomorrow and see what I can find
from lottie-react-native.
Related Issues (20)
- Cannot convert undefined value to object (Error on Android only) HOT 3
- [Android] dotlottie files not working HOT 15
- pod install fail on MacOS 12.7.3(monterey) Xcode 14.2 HOT 3
- Lottie json crashes on Andriod devices but IOS works fine HOT 5
- RN 0.73.4 application keeps stopping HOT 3
- Download lotties json fies not working on expo android. HOT 11
- reduce motion: lottie files no longer animated HOT 1
- dotLottie will not load on web HOT 4
- Lottie animation is breaked on my app HOT 25
- Play method does not respect startFrame and endFrame properties
- Possible to change colorFilters dynamically without reseting animation? HOT 1
- [Android | Expo 50 | RN 0.73.4] Memory is not freed on unmount HOT 4
- How to remove lottie-react-native for windows HOT 1
- Cannot run IOS after installing lottie-react-native. HOT 1
- Animation flickering & Some animations not even visible on Android HOT 5
- [MACOS App Development][react Native Build Failure] Cannot find type 'Color' in scope HOT 2
- Flashing while animation is playing HOT 1
- Xcode will not build project with [email protected] due to lack of PrivacyInfo HOT 2
- My Lottie animation not working correctly HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lottie-react-native.