import React from 'react' ; import { Text } from 'react-native' ; interface DateProps { date : Date ; } export const LocalisedDate = ( { date } ) => ( < Text > { date . toLocaleDateString ( ) } { date . toLocaleTimeString ( ) } < /Text>);