As an iOS developer with limited knowledge of javascript, I am currently attempting to utilize the AlertIOS function. The provided document API for AlertIOS is as follows:
static alert(title: string, message?: string, buttons?: Array<{ text: ?string; onPress: ?Function; }>)
I find myself confused about the parameters required for this function. I attempted to write the code snippet below, but encountered an error:
AlertIOS('Username empty', 'Please type your username', buttons: {{text: 'Cancel', onPress: onPressCancel}});
Can someone guide me on how to properly use AlertIOS?