harry
harry

Reputation: 240

Use react-native-popup-dialog as Alert.alert

I am using Alert.alert("") to display message, but I would like to change it to use react-native-popup-dialog because message of alert can not be aligned and very limited expression.

For example, my current function is as follows. And I would like to use react-native-popup-dialog, but from an example, it can be used inside of render function.

Is there any way to use react-native-popup-dialog?

displayMessage: function(message)
{
    Alert.alert(`${message}`);    // current
    // Dialog.???(`${message}`);  // future
} 

Upvotes: 0

Views: 231

Answers (0)

Related Questions