forked from ant-design/ant-design-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
636c3f4
commit d8e855c
Showing
12 changed files
with
167 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,72 @@ | ||
/* tslint:disable:no-console */ | ||
import * as React from 'react'; | ||
import { View } from 'react-native'; | ||
import { View, ScrollView } from 'react-native'; | ||
import { Badge, WhiteSpace } from 'antd-mobile'; | ||
|
||
export default class BasicTagExample extends React.Component<any, any> { | ||
render() { | ||
return ( | ||
<View style={{ padding: 20}}> | ||
|
||
<Badge text={9}> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={109} overflowCount ={100}> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={109}> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text="new"> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={109} dot> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={109} dot size="large"> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={33} corner> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text="new" corner size="large"> | ||
<View style={{ width: 72, height: 72, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
</View> | ||
<ScrollView | ||
style={{ flex: 1 }} | ||
automaticallyAdjustContentInsets={false} | ||
showsHorizontalScrollIndicator={false} | ||
showsVerticalScrollIndicator={false} | ||
> | ||
<View style={{ padding: 20}}> | ||
<Badge text={9}> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={109} overflowCount ={100}> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={109}> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text="new"> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={109} dot> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={109} dot size="large"> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text={33} corner> | ||
<View style={{ width: 52, height: 52, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
|
||
<WhiteSpace /> | ||
<WhiteSpace /> | ||
|
||
<Badge text="new" corner size="large"> | ||
<View style={{ width: 72, height: 72, backgroundColor: 'rgba(255, 140, 101, 0.15)' }} /> | ||
</Badge> | ||
</View> | ||
</ScrollView> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.