expo-ios-mesh-gradient
v0.1.1
Published
Beautiful, animated iOS mesh gradient for React Native โ built with SwiftUI + Expo magic ๐งโโ๏ธ. Customize ๐๏ธ colors, speed & more. Perfect for splash screens, backgrounds, or aesthetic vibes โจ
Maintainers
Readme
โจ Features
- ๐จ Beautiful animated mesh gradients
- ๐ Smooth color transitions and customizable points
- ๐ Native SwiftUI rendering on iOS
- โ๏ธ Fully configurable animations
- ๐ญ Optional masking, safe area ignoring, and more
๐ Installation
1. Add the package
bunx expo install expo-ios-mesh-gradient2. Install CocoaPods
cd ios && pod install3. Prebuild the iOS project (if not already)
bunx expo prebuild --platform ios4. Rebuild your application
bun iosโ iOS only โ This module is built with SwiftUI and works exclusively on iOS.
๐ฆ Usage
import { AnimatedMeshGradient } from "expo-ios-mesh-gradient";
export default function App() {
return (
<AnimatedMeshGradient
columns={3}
rows={3}
colors={["#ff6ec4", "#7873f5", "#4ADEDE"]}
smoothsColors
animated
animationSpeed={0.003}
style={{ flex: 1 }}
>
{/* Optional content goes here */}
</AnimatedMeshGradient>
);
}โ๏ธ Props
| โ๏ธ Prop | ๐งพ Type | ๐งฎ Default | ๐ Description |
| --------------------- | ---------------------- | ----------- | ---------------------------------- |
| columns | number | 3 | Number of columns for the mesh |
| rows | number | 3 | Number of rows for the mesh |
| points | [number, number][] | undefined | Custom mesh point coordinates |
| colors | string[] | [] | Colors to render the gradient with |
| smoothsColors | boolean | false | Smooth out color transitions |
| ignoresSafeArea | boolean | false | Expand mesh into safe area |
| mask | boolean | false | Enable mask mode |
| animated | boolean | false | Enable animation |
| animationSpeed | number | 1 | Controls speed of animation |
| animationInterval | number | undefined | Interval between animations |
| noiseAmplitude | number | undefined | Amplitude of mesh point noise |
| frequencyModulation | number | undefined | Modulation frequency for animation |
| animationRanges | [number, number][] | undefined | Ranges for point animation |
| animationOffsets | number[] | undefined | Per-point animation offset |
| animationScales | number[] | undefined | Per-point animation scaling factor |
| style | StyleProp<ViewStyle> | undefined | Custom styles for the wrapper |
| children | React.ReactNode | undefined | Optional child components |
๐ฑ Platform Support
- โ iOS (SwiftUI based)
- โ Android (not supported)
๐ Built With
- โ๏ธ Expo
- ๐ SwiftUI
- ๐ฑ React Native
โค๏ธ Contributing
Feel free to open issues, feature requests, or PRs. All contributions are welcome!
๐ License
MIT ยฉ rit3zh
