Skip to content

Commit

Permalink
fix: format code. (#213)
Browse files Browse the repository at this point in the history
* fix:发布 iOS 应用商店:一. 创建AppID

* fix:发布 iOS 应用商店优化排版

* fix:ios应用商店文档更新及排版优化

* fix:修改环境安装文档语法错误及部分内容优化

* fix:更新ios应用发布流程

* fix:ios应用商店发布更新

* fix:更新ios及安卓应用商店发布

* fix:安卓上架更新

* fix:增加button自定义文本实例

Co-authored-by: 杨楠 <yangnan@nihaosi.com>
  • Loading branch information
Amber-Nan and 杨楠 committed Sep 13, 2021
1 parent 2cc2c22 commit da0c2e8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions example/examples/src/routes/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React from 'react';
import {View, Text} from 'react-native';
import {Button, Spacing, Icon, Flex} from '@uiw/react-native';
import {ComProps} from '../../routes';
import Layout, {Container} from '../../Layout';
const {Header, Body, Card, Footer} = Layout;
import { View, Text } from 'react-native';
import { Button, Spacing, Icon, Flex } from '@uiw/react-native';
import { ComProps } from '../../routes';
import Layout, { Container } from '../../Layout';
const { Header, Body, Card, Footer } = Layout;

export interface ButtonViewProps extends ComProps {}
export interface ButtonViewProps extends ComProps { }

export default class ButtonView extends React.Component<ButtonViewProps> {
render() {
const {route} = this.props;
const { route } = this.props;
const description = route.params.description;
const title = route.params.title;
return (
Expand Down Expand Up @@ -108,20 +108,20 @@ export default class ButtonView extends React.Component<ButtonViewProps> {
<Button color="#f6f8fa">自定义颜色{'color="#f6f8fa"'}</Button>
</Card>
<Card title="文本样式">
<Button textStyle={{fontSize: 20}} color="yellow">
<Button textStyle={{ fontSize: 20 }} color="yellow">
字号调整{'textStyle = {{fontSize:20}}'}
</Button>
<Spacing />
<Button textStyle={{color: 'blue'}}>
<Button textStyle={{ color: 'blue' }}>
文本颜色{'textStyle={{color:"blue"}}'}
</Button>
<Spacing />
<Button color="#f6f8fa" textStyle={{letterSpacing: 2}}>
<Button color="#f6f8fa" textStyle={{ letterSpacing: 2 }}>
文本间距{'textStyle={{letterSpacing:3}}'}
</Button>
</Card>
<Card title="设置边框">
<Button bordered={false} color="#f6f8fa">
<Button bordered={false} color="#f6f8fa" >
不显示边框{'bordered={false}'}
</Button>
<Spacing />
Expand Down

0 comments on commit da0c2e8

Please sign in to comment.