Secondary action is defined as secondaryAction?: NavigationAlertAction; in NavigationAlerts.d.ts.
However, in practice it is not option. If it is a nil, a nullException happens crashing the app. This allows the secondary action to be null by adding in a check.
Secondary action is defined as
secondaryAction?: NavigationAlertAction;
in NavigationAlerts.d.ts.However, in practice it is not option. If it is a nil, a nullException happens crashing the app. This allows the secondary action to be null by adding in a check.