Skip to content

Commit da0c2e8

Browse files
Amber-Nan杨楠
andauthored
fix: format code. (#213)
* fix:发布 iOS 应用商店:一. 创建AppID * fix:发布 iOS 应用商店优化排版 * fix:ios应用商店文档更新及排版优化 * fix:修改环境安装文档语法错误及部分内容优化 * fix:更新ios应用发布流程 * fix:ios应用商店发布更新 * fix:更新ios及安卓应用商店发布 * fix:安卓上架更新 * fix:增加button自定义文本实例 Co-authored-by: 杨楠 <yangnan@nihaosi.com>
1 parent 2cc2c22 commit da0c2e8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

example/examples/src/routes/Button/index.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React from 'react';
2-
import {View, Text} from 'react-native';
3-
import {Button, Spacing, Icon, Flex} from '@uiw/react-native';
4-
import {ComProps} from '../../routes';
5-
import Layout, {Container} from '../../Layout';
6-
const {Header, Body, Card, Footer} = Layout;
2+
import { View, Text } from 'react-native';
3+
import { Button, Spacing, Icon, Flex } from '@uiw/react-native';
4+
import { ComProps } from '../../routes';
5+
import Layout, { Container } from '../../Layout';
6+
const { Header, Body, Card, Footer } = Layout;
77

8-
export interface ButtonViewProps extends ComProps {}
8+
export interface ButtonViewProps extends ComProps { }
99

1010
export default class ButtonView extends React.Component<ButtonViewProps> {
1111
render() {
12-
const {route} = this.props;
12+
const { route } = this.props;
1313
const description = route.params.description;
1414
const title = route.params.title;
1515
return (
@@ -108,20 +108,20 @@ export default class ButtonView extends React.Component<ButtonViewProps> {
108108
<Button color="#f6f8fa">自定义颜色{'color="#f6f8fa"'}</Button>
109109
</Card>
110110
<Card title="文本样式">
111-
<Button textStyle={{fontSize: 20}} color="yellow">
111+
<Button textStyle={{ fontSize: 20 }} color="yellow">
112112
字号调整{'textStyle = {{fontSize:20}}'}
113113
</Button>
114114
<Spacing />
115-
<Button textStyle={{color: 'blue'}}>
115+
<Button textStyle={{ color: 'blue' }}>
116116
文本颜色{'textStyle={{color:"blue"}}'}
117117
</Button>
118118
<Spacing />
119-
<Button color="#f6f8fa" textStyle={{letterSpacing: 2}}>
119+
<Button color="#f6f8fa" textStyle={{ letterSpacing: 2 }}>
120120
文本间距{'textStyle={{letterSpacing:3}}'}
121121
</Button>
122122
</Card>
123123
<Card title="设置边框">
124-
<Button bordered={false} color="#f6f8fa">
124+
<Button bordered={false} color="#f6f8fa" >
125125
不显示边框{'bordered={false}'}
126126
</Button>
127127
<Spacing />

0 commit comments

Comments
 (0)