- react native confirm component for both Android and iOS based on pure JavaScript
- This component provide some more functions besides the basic Modal RN provided
- Besides the basic properties RN provided, we also provide belows:
Prop | Default | Type | Description |
---|---|---|---|
title | - | string |
Specify the title of the confirm |
text | - | string |
Specify the text you want to show in the content |
content | - | node |
Support you custome your own content |
comment | - | string |
Specify the comment in the input |
commentRequired | false | bool |
If you must type sth in the input |
disableCancel | false | bool |
Do not show the cancel button |
confirmText | '确定' | string |
Specify the text of the confirm button |
cancelText | '取消' | string |
Specify the text of the cancel button |
cancel | - | 'func' | callback when you cancel |
confirm | - | 'func' | callback when you confirm |