Skip to content

Commit 23e6ba5

Browse files
authored
Updating API description & custom example.
1 parent 42ee8a9 commit 23e6ba5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ render() {
8787
ref="toast"
8888
style={{backgroundColor:'red'}}
8989
position='top'
90+
textStyle={{color:'red'}}
9091
/>
9192
</View>
9293
);
@@ -106,13 +107,13 @@ Props | Type | Optional | Default | Description
106107
----------------- | -------- | -------- | ----------- | -----------
107108
style | View.propTypes.style | true | {backgroundColor: 'black',opacity: OPACITY,borderRadius: 5,padding: 10,} | Custom style toast
108109
position | PropTypes.oneOf(['top','center','bottom',]) |true | 'bottom' | Custom toast position
109-
110+
textStyle | View.propTypes.style | true | {color:'white'} | Custom style text
110111

111112

112113
Method | Type | Optional | Description
113114
----------------- | -------- | -------- | ----------- | -----------
114115
show(text, duration) | function | false | show a toast,unit is millisecond
115-
close() | function | true | Close toast early
116+
close(instantly) | function | true | pass true to close instantly, empty or false to start the close timer
116117

117118

118119
## Contribution

0 commit comments

Comments
 (0)