expo / expo/react-native-action-sheet

If IOS is forced to dark mode, userInterfaceStyle prop doesnt override it.

Open
#236 8 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

props.showActionSheetWithOptions(
{
options: calcValArray,
destructiveButtonIndex: _.indexOf(
calcValArray,
prayerSettings.caclMethod,
),
cancelButtonIndex: 0,
useModal: true,
userInterfaceStyle: 'light',
},
(buttonIndex) => {
if (buttonIndex !== 0)
setCalcMethod(
calcValArray[buttonIndex],
);
},
);

in the above example IOS physical phone is forced to Dark Mode. But if sheet is opened with light interfaceStyle. it still opens as dark.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.