UNPKG

@fto-consult/expo-ui

Version:

Bibliothèque de composants UI Expo,react-native

40 lines (31 loc) • 990 B
import {TERMS_OF_USES} from "./routes"; import title from "./title"; import Screen from "$screen"; import Link from "./Link"; import Content from "./content"; import {extendObj} from "$cutils"; import React from "$react"; export default function TermsOfUses(props){ return <Screen {...props} withDrawer = {false} appBarProps = {extendObj({},{ backAction : false, title, actions : [{ text : "Accepter", icon : "check", onPress : ({goBack})=>{ goBack && goBack(); } }], }, props.appBarProps)} > {React.isComponent(Content)? <Content {...props}/> : React.isValidElement(Content)? Content : null} </Screen> } TermsOfUses.screenName = TERMS_OF_USES; TermsOfUses.authRequired = false; TermsOfUses.Modal = true; TermsOfUses.Link = Link; TermsOfUses.title = title;