File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 99### 基础示例
1010
1111``` jsx mdx:preview&background=#bebebe29
12- import React , { Fragment } from ' react' ;
12+ import React , { Fragment , useState } from ' react' ;
1313import { Tabs } from ' @uiw/react-native' ;
1414const { Item } = Tabs
1515function Demo () {
@@ -29,7 +29,7 @@ export default Demo
2929### 使用 Icon
3030
3131``` jsx mdx:preview&background=#bebebe29
32- import React , { Fragment } from ' react' ;
32+ import React , { Fragment , useState } from ' react' ;
3333import { Tabs , Icon } from ' @uiw/react-native' ;
3434function Demo () {
3535 const [value ,setValue ]= useState (0 )
@@ -47,7 +47,7 @@ export default Demo
4747### 选中色更改
4848
4949``` jsx mdx:preview&background=#bebebe29
50- import React , { Fragment } from ' react' ;
50+ import React , { Fragment , useState } from ' react' ;
5151import { Tabs , Icon } from ' @uiw/react-native' ;
5252function Demo () {
5353 const [value ,setValue ]= useState (0 )
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const styles = StyleSheet.create({
6262 } ,
6363 TabsContainer : {
6464 backgroundColor : '#fff' ,
65- minWidth : 1 * MainWidth ,
65+ maxWidth : 1 * MainWidth ,
6666 display : 'flex' ,
6767 justifyContent : 'space-between' ,
6868 alignItems : 'center' ,
You can’t perform that action at this time.
0 commit comments