@fto-consult/expo-ui
Version:
Bibliothèque de composants UI Expo,react-native
22 lines (21 loc) • 684 B
JavaScript
import Link from "$ecomponents/Link";
import {PRIVACY_POLICY} from "./routes";
import theme from "$theme";
import {StyleSheet} from "react-native";
import title from "./title";
import {defaultObj} from "$cutils";
import Label from "$ecomponents/Label";
export default function(props){
const {style,...rest} = props;
return <Link routeName={PRIVACY_POLICY}>
<Label {...defaultObj(rest)} style={[{color:theme.colors.primary},styles.content,style]}>
{props.children || title}
</Label>
</Link>
}
const styles = StyleSheet.create({
content : {
textDecorationLine:'underline',
fontWeight : 'bold',
}
})