import * as React from 'react' ; import { StyleSheet , Platform , Text } from 'react-native' ; import * as c from '@frogpond/colors' ; const styles = StyleSheet . create ( { title : { color : c . black , fontSize : 17 , ... Platform . select ( { ios : { fontWeight : '500' , } , android : { fontWeight : '600' , } , } ) , } , noBold : { fontWeight : '400' , } , } ) ; type PropsType = { children ? : any ; style ? : any ; lines ? : number ; bold ? : boolean ; } ; export function Title ( props ) { return ( < Text numberOfLines = { props . lines } style = { [ styles . title , ! props . bold && styles . noBold , props . style ] } > { props . children } < /Text>); }