以下代码应该显示“确定”按钮,但不会在Android上显示(至少在8.0、9.0上不会显示)。我正在使用本机0.59.9。
你有看过类似的东西吗?
Alert.alert(
'Alert Title',
'My Alert Msg',
[
{ text: 'OK', onPress: () => console.log('OK Pressed') },
],
{ cancelable: true },
);
更改
{ cancelable: true } to { cancelable: false }