expo-ios-mesh-gradient
TypeScript icon, indicating that this package has built-in type declarations

0.1.0ย โ€ขย Publicย โ€ขย Published

Expo iOS Mesh Gradient

๐ŸŽจ expo-ios-mesh-gradient

Beautiful iOS animated mesh gradient made with Expo

Made with React Native Maintained? Yes Runs with Expo

Built with love


โœจ 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

npx expo install expo-ios-mesh-gradient

2. Install CocoaPods

cd ios && pod install

3. Prebuild the iOS project (if not already)

npx expo prebuild --platform ios

4. Rebuild your application

pnpm 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


โค๏ธ Contributing

Feel free to open issues, feature requests, or PRs. All contributions are welcome!


๐Ÿ“„ License

MIT ยฉ rit3zh

Package Sidebar

Install

npm i expo-ios-mesh-gradient

Weekly Downloads

374

Version

0.1.0

License

MIT

Unpacked Size

608 kB

Total Files

25

Last publish

Collaborators

  • imax.i7