Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.15 KB

File metadata and controls

26 lines (20 loc) · 1.15 KB

The react-native-confirm

  • react native confirm component for both Android and iOS based on pure JavaScript

Main

  • This component provide some more functions besides the basic Modal RN provided

Properties

  • Besides the basic properties RN provided, we also provide belows:

image

Properties

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