The linear gradient component crashes the app on expo SDK 45.
See original GitHub issueSteps to Reproduce:
- Create an expo managed app with expo init (SDK 45);
- Install
dripsyand@dripsy/gradient(3.6.0); - Use the gradient component anywhere on the app.
Sample App.tsx
import { Gradient } from "@dripsy/gradient";
import { DripsyProvider, makeTheme } from "dripsy";
import { StatusBar } from "expo-status-bar";
import { Text } from "react-native";
const theme = makeTheme({...});
export default function App() {
return (
<DripsyProvider theme={theme}>
<Gradient
colors={["green", "blue"]}
sx={{ flex: 1, alignItems: "center", justifyContent: "center" }}
>
<Text>Open up App.tsx to start working on your app!</Text>
<StatusBar style="auto" />
</Gradient>
</DripsyProvider>
);
}
Expected Result
The app runs crash free
Actual Result


Issue Analytics
- State:
- Created a year ago
- Comments:24 (13 by maintainers)
Top Results From Across the Web
expo-linear-gradient is crashing the iOS app #16572 - GitHub
The app will crash. If I remove the expo-linear-gradient component and repeat the same steps, it doesn't crash.
Read more >linearGradientProps crashes my app - react native
It says in the docs linearGradientProps is only supported in expo so I give up. But the developers seem to mean it should...
Read more >ErrorRecovery - Expo Documentation
This package only works with the deprecated classic Expo build service. Set arbitrary error recovery props. If your project crashes in production as...
Read more >IOS (React-native) app crashes in … | Apple Developer Forums
Hi, I am stuck on this for a few days now. Please help. My ReactNative app crashes in TestFlight but seems to work...
Read more >Getting Constant Crashes on Pages w/ FlatList - Reddit
My app started crashing on the screen with a FlatList when we upgraded ... Hi, which version of expo-linear-gradient u used to fix...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think just expo-linear-gradient should suffice, but that works too. I’ll make this a peer dep in a future release. Glad that worked!
Can you try upgrading to
3.7.xfor both dripsy and the gradient?