Skip to content

Commit 82d6ebb

Browse files
authored
fix: improve styles for items on the left in JS stack (#221)
1 parent 12fcf51 commit 82d6ebb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

example/src/screens/UsageLeft.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export function UsageLeft({ navigation, route }: ScreenProps<'UsageLeft'>) {
1515
iconName={
1616
route.params && route.params.showIcon ? 'arrow-back' : undefined
1717
}
18+
style={{ backgroundColor: 'pink', marginRight: 10 }}
1819
onPress={() => alert('Test')}
1920
/>
2021
</HeaderButtons>

src/ButtonsWrapper.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,20 @@ const styles = StyleSheet.create({
5656
}),
5757
},
5858
extraEdgeMarginOnLeft: {
59+
// not used in native stack
60+
// only applies in JS stack or when rendered as a header for a tab navigator
5961
...Platform.select({
6062
android: {
61-
marginLeft: 5,
63+
marginLeft: 15,
6264
},
6365
default: {
64-
marginLeft: 4,
66+
marginLeft: 14,
6567
},
6668
}),
6769
},
6870
extraEdgeMarginOnRight: {
71+
// not used in native stack
72+
// only applies in JS stack or when rendered as a header for a tab navigator
6973
...Platform.select({
7074
android: {
7175
marginRight: 14,

0 commit comments

Comments
 (0)