
Security News
vlt 1.5.0 Adds Agent Skills Management
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.
react-native-nitro-glass
Advanced tools
react-native-nitro-glass is a react native package built with Nitro
A native iOS library that brings LiquidGlass effects to React Native through Nitro Modules. Implement stunning glassmorphism (frosted glass) effects with native performance, supporting blur, transparency, and customizable tint colors.
clear, regular)[!IMPORTANT] To use Nitro Views features, React Native v0.78.0 or higher is required.
bun add react-native-nitro-glass react-native-nitro-modules
Or with npm:
npm install react-native-nitro-glass react-native-nitro-modules
Or with yarn:
yarn add react-native-nitro-glass react-native-nitro-modules
After installation, the Nitro module will be automatically compiled during the native build process.
The main component for creating native LiquidGlass frosted glass effects on iOS.
| Prop | Type | Required | Description |
|---|---|---|---|
effect | 'clear' | 'regular' | ✅ | The type of glass effect to apply (LiquidGlass style) |
interactive | boolean | ✅ | Defines if the component responds to touches |
tintColor | string | ❌ | Tint color in hexadecimal format (e.g., #ffffff) |
style | StyleProp<ViewStyle> | ❌ | Standard React Native view styles |
children | ReactNode | ❌ | Content to be rendered inside the glass |
import { NitroGlassView } from 'react-native-nitro-glass'
import { View, Text } from 'react-native'
export function BasicExample() {
return (
<NitroGlassView
effect="clear"
interactive={true}
style={{
width: 300,
height: 200,
borderRadius: 20,
}}
>
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Content inside native LiquidGlass</Text>
</View>
</NitroGlassView>
)
}
import { NitroGlassView } from 'react-native-nitro-glass'
import { Text } from 'react-native'
export function TintedExample() {
return (
<NitroGlassView
effect="clear"
interactive={true}
tintColor="#2f2f2f"
style={{
width: 300,
height: 200,
borderRadius: 20,
}}
>
<Text style={{ color: '#fff' }}>Glass with custom tint</Text>
</NitroGlassView>
)
}
import { NitroGlassView } from 'react-native-nitro-glass'
import { View, Text, StyleSheet } from 'react-native'
export function EffectsComparison() {
return (
<View style={styles.container}>
<NitroGlassView
effect="clear"
interactive={true}
style={styles.glass}
>
<Text style={styles.label}>Clear Effect</Text>
</NitroGlassView>
<NitroGlassView
effect="regular"
interactive={true}
style={styles.glass}
>
<Text style={styles.label}>Regular Effect</Text>
</NitroGlassView>
</View>
)
}
const styles = StyleSheet.create({
container: {
flex: 1,
gap: 20,
padding: 20,
},
glass: {
width: '100%',
height: 150,
borderRadius: 20,
alignItems: 'center',
justifyContent: 'center',
},
label: {
fontSize: 16,
fontWeight: '600',
color: '#fff',
},
})
A container component for grouping multiple frosted glass views with automatic spacing.
| Prop | Type | Required | Description |
|---|---|---|---|
spacing | number | ❌ | Space between children in pixels |
style | StyleProp<ViewStyle> | ❌ | Standard React Native view styles |
children | ReactNode | ❌ | Child components to group |
import { NitroGlassView, NitroGlassContainer } from 'react-native-nitro-glass'
import { StyleSheet } from 'react-native'
export function ContainerExample() {
return (
<NitroGlassContainer
spacing={15}
style={styles.container}
>
<NitroGlassView
effect="clear"
interactive={true}
style={styles.item}
/>
<NitroGlassView
effect="regular"
interactive={true}
style={styles.item}
/>
<NitroGlassView
effect="clear"
interactive={true}
style={styles.item}
/>
</NitroGlassContainer>
)
}
const styles = StyleSheet.create({
container: {
width: '100%',
flexDirection: 'row',
},
item: {
flex: 1,
height: 150,
borderRadius: 20,
},
})
import { NitroGlassView, NitroGlassContainer } from 'react-native-nitro-glass'
import { View, Text, StyleSheet } from 'react-native'
export function CustomSpacingExample() {
return (
<View style={styles.wrapper}>
<NitroGlassContainer
spacing={30}
style={styles.container}
>
<NitroGlassView
effect="clear"
interactive={true}
style={styles.item}
>
<Text style={styles.text}>Item 1</Text>
</NitroGlassView>
<NitroGlassView
effect="clear"
interactive={true}
style={styles.item}
>
<Text style={styles.text}>Item 2</Text>
</NitroGlassView>
</NitroGlassContainer>
</View>
)
}
const styles = StyleSheet.create({
wrapper: {
flex: 1,
padding: 20,
},
container: {
width: '100%',
flexDirection: 'row',
},
item: {
flex: 1,
height: 100,
borderRadius: 20,
alignItems: 'center',
justifyContent: 'center',
},
text: {
color: '#fff',
fontWeight: '600',
},
})
clearThe clear effect provides a lighter, more transparent frosted glass appearance with subtle blur. Use when you want:
<NitroGlassView effect="clear" interactive={true} style={{ /* ... */ }}>
{/* Content */}
</NitroGlassView>
regularThe regular effect provides a more pronounced and opaque frosted glass look with stronger blur. Use when you want:
<NitroGlassView effect="regular" interactive={true} style={{ /* ... */ }}>
{/* Content */}
</NitroGlassView>
<NitroGlassView
effect="clear"
interactive={true}
style={{
width: 300,
height: 200,
borderRadius: 30,
borderWidth: 1,
borderColor: 'rgba(255, 255, 255, 0.3)',
}}
>
{/* Content */}
</NitroGlassView>
<NitroGlassView
effect="clear"
interactive={true}
style={{
width: 300,
height: 200,
borderRadius: 30,
shadowColor: '#000',
shadowOffset: { width: 0, height: 10 },
shadowOpacity: 0.3,
shadowRadius: 20,
elevation: 10,
}}
>
{/* Content */}
</NitroGlassView>
import { NitroGlassView } from 'react-native-nitro-glass'
import { View, Text, StyleSheet } from 'react-native'
export function PaddingExample() {
return (
<NitroGlassView
effect="regular"
interactive={true}
style={styles.glass}
>
<View style={styles.content}>
<Text style={styles.title}>Title</Text>
<Text style={styles.subtitle}>Subtitle</Text>
</View>
</NitroGlassView>
)
}
const styles = StyleSheet.create({
glass: {
width: 300,
height: 200,
borderRadius: 20,
},
content: {
flex: 1,
padding: 20,
gap: 10,
justifyContent: 'center',
},
title: {
fontSize: 18,
fontWeight: 'bold',
color: '#fff',
},
subtitle: {
fontSize: 14,
color: '#e0e0e0',
},
})
| Feature | iOS |
|---|---|
| LiquidGlass Effects | ✅ Natively Supported |
| Tint Colors | ✅ Supported |
| Interactive Mode | ✅ Supported |
| Custom Styling | ✅ Supported |
| Blur Performance | ✅ GPU Optimized |
Note: This is an iOS-only library leveraging native LiquidGlass capabilities. Android support would require alternative glass effect implementations.
The library achieves exceptional performance through native implementation:
interface NitroGlassViewProps extends HybridViewProps {
interactive: boolean
tintColor?: string // Hexadecimal color (e.g., #ffffff)
effect: 'regular' | 'clear'
style?: StyleProp<ViewStyle>
children?: ReactNode
}
interface NitroGlassContainerProps extends HybridViewProps {
spacing?: number
style?: StyleProp<ViewStyle>
children?: ReactNode
}
This library uses Nitro Modules to bridge React Native with native iOS code. The native implementation leverages:
Contributions are welcome! For major changes, please open an issue first to discuss the changes you would like to make.
MIT - see the LICENSE file for details
If you have any questions or encounter issues, please open an issue on GitHub.
Made with ❤️ by Gabriel-Pereira1788
FAQs
react-native-nitro-glass is a react native package built with Nitro
We found that react-native-nitro-glass demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.