import { Text, useReducedTransparency } from "@vortexlabs/vortex-native";
import { View } from "react-native";
export const PhotoCaption = () => {
const reduced = useReducedTransparency();
return (
<View style={{ backgroundColor: reduced ? "#111" : "rgba(0, 0, 0, 0.72)" }}>
<Text color="static-white">Sydney harbour at sunset</Text>
</View>
);
};Features
- Reads Reduce Transparency on iOS and updates when the setting changes.
- Returns true on iOS until the preference becomes available and false on other platforms.
Blurred Surfaces
Backdrop already respects Reduce Transparency when using the provider blur adapter. Use the hook for custom surfaces.