Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Appbar/AppbarHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class AppbarHeader extends React.Component<Props> {
isDark =
backgroundColor === 'transparent'
? false
: !color(backgroundColor).light();
: !color(backgroundColor).isLight();
}
StatusBar.setBarStyle(isDark ? 'light-content' : 'dark-content');

Expand Down
18 changes: 12 additions & 6 deletions src/components/__tests__/Appbar/__snapshots__/Appbar.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A
<View
accessibilityLabel="Back"
accessibilityRole="button"
accessibilityStates={Array []}
accessible={true}
hitSlop={
Object {
Expand All @@ -287,11 +288,13 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A
Array [
Object {
"alignItems": "center",
"borderRadius": 18,
"height": 36,
"justifyContent": "center",
"margin": 6,
"overflow": "visible",
"overflow": "hidden",
},
Object {
"borderRadius": 18,
"height": 36,
"width": 36,
},
undefined,
Expand Down Expand Up @@ -435,6 +438,7 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A
</View>
<View
accessibilityRole="button"
accessibilityStates={Array []}
accessible={true}
hitSlop={
Object {
Expand All @@ -459,11 +463,13 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A
Array [
Object {
"alignItems": "center",
"borderRadius": 18,
"height": 36,
"justifyContent": "center",
"margin": 6,
"overflow": "visible",
"overflow": "hidden",
},
Object {
"borderRadius": 18,
"height": 36,
"width": 36,
},
undefined,
Expand Down
1 change: 1 addition & 0 deletions src/components/__tests__/__snapshots__/Menu.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports[`renders menu with content styles 1`] = `
>
<View
accessibilityRole="button"
accessibilityStates={Array []}
accessible={true}
isTVSelectable={true}
onResponderGrant={[Function]}
Expand Down