@ontech7/react-native-dialog
Version:
Simple and lightweight dialog component for React Native, structure similar to shadcn/ui, with dimezis background blur. Compatible with Android & iOS.
14 lines (13 loc) • 450 B
JavaScript
import React from "react";
import { StyleSheet, Text } from "react-native";
import { useDialogStyles } from "./DialogProvider";
export function DialogDescription({ children, style, ...props }) {
const { description } = useDialogStyles();
return (React.createElement(Text, { ...props, style: [styles.text, description] }, children));
}
const styles = StyleSheet.create({
text: {
fontSize: 16,
fontWeight: "400",
},
});