File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change 11Badge 标记
22---
33
4- ![ ] ( https://user-images.githubusercontent.com/57083007/137631808-f3899eb4-69c1-4dd5-a686-0f8bb38fe4b6.png ) <!-- rehype:style=zoom: 33%;float: right; margin-left: 15px;-->
54
65### 基础示例
76
8- ``` jsx
7+
8+ ``` jsx mdx:preview
9+ import React from " react"
910import { View , Text } from ' react-native' ;
1011import { Badge } from ' @uiw/react-native' ;
1112
@@ -17,6 +18,29 @@ function Demo() {
1718 < / View>
1819 );
1920}
21+
22+ export default Demo ;
23+
24+ ```
25+ ### 设置类型
26+
27+
28+ ``` jsx mdx:preview
29+ import React from " react"
30+ import { View , Text } from ' react-native' ;
31+ import { Badge } from ' @uiw/react-native' ;
32+
33+ function Demo () {
34+ return (
35+ < View style= {{ flexDirection: ' row' }}>
36+ < Text > 一文带你搞懂 API 网关< / Text >
37+ < Badge text= " 标记" type= " dot" color= " skyblue" / >
38+ < / View>
39+ );
40+ }
41+
42+ export default Demo ;
43+
2044```
2145
2246### Props
You can’t perform that action at this time.
0 commit comments