import React from 'react' import { useTranslate } from '../utils'; import Grid from '.' import GridItem from '../griditem' import Toast from '../toast' import Icon from '../icon' import { View, Text } from 'react-native'; import { DemoPage, DemoCard } from '../configprovider/styles/demo.page' interface T { basic: string text: string columnNum: string square: string gutter: string reverse: string horizontal: string iconStyle: string customContent: string } const GridDemo = () => { const [translated] = useTranslate({ 'zh-CN': { basic: '基本用法', text: '文字', columnNum: '自定义列数', square: '正方形格子', gutter: '格子间距', reverse: '内容翻转', horizontal: '内容横向', iconStyle: '图标颜色/大小', customContent: '自定义内容', }, 'zh-TW': { basic: '基本用法', text: '文字', columnNum: '自定義列數', square: '正方形格子', gutter: '格子間距', reverse: '內容翻轉', horizontal: '內容橫向', iconStyle: '圖標顏色/大小', customContent: '自定義內容', }, 'en-US': { basic: 'Basic Usage', text: 'text', columnNum: 'Column Num', square: 'Square', gutter: 'Gutter', reverse: 'Reverse', horizontal: 'Horizontal', iconStyle: 'Icon Style', customContent: 'Custom Content', }, }) const handleClick = () => { Toast.text({ title: '点击了第几个' }) } return ( } /> 自定义内容22 } /> } /> ) } export default GridDemo