react-native-bpk-component-alert
Backpack React Native alert component.
Installation
npm install react-native-bpk-component-alert --save-dev
Usage
;; BpkAlert;
Theming and Dark mode
Android
To use the correct Backpack font and colours, the dialog needs to be themed in the native side. Bellow is an example theme you can use:
<!-- Make sure your theme extends from `DayNight` --> @style/AppTheme.AlertDialog ?alertDialogTheme @style/AppTheme.AlertDialog.Title ?bpkTextSmAppearance @style/AppTheme.AlertDialog.ButtonBar.Button @style/AppTheme.AlertDialog.ButtonBar.Button @color/bpkBackgroundTertiary @color/bpkTextPrimary ?bpkTextLgEmphasizedAppearance ?bpkTextSmEmphasizedAppearance true ?bpkPrimaryColor