fix for drawer menu and title text on OnePlus devices #370

Merged
akinwale merged 5 commits from drawer-menu-font into master 2018-12-01 23:07:21 +01:00
akinwale commented 2018-11-30 12:39:24 +01:00 (Migrated from github.com)
No description provided.
skhameneh (Migrated from github.com) reviewed 2018-11-30 12:39:24 +01:00
neb-b (Migrated from github.com) reviewed 2018-11-30 17:19:11 +01:00
@ -66,6 +66,7 @@ const discoverStack = createStackNavigator({
navigationOptions: ({ navigation }) => ({
title: 'Discover',
headerLeft: menuNavigationButton(navigation),
headerTitleStyle: discoverStyle.titleText
neb-b (Migrated from github.com) commented 2018-11-30 17:19:11 +01:00

Is there a way to default to this? Instead of passing it in every time.

Is there a way to default to this? Instead of passing it in every time.
akinwale (Migrated from github.com) reviewed 2018-11-30 21:40:13 +01:00
@ -66,6 +66,7 @@ const discoverStack = createStackNavigator({
navigationOptions: ({ navigation }) => ({
title: 'Discover',
headerLeft: menuNavigationButton(navigation),
headerTitleStyle: discoverStyle.titleText
akinwale (Migrated from github.com) commented 2018-11-30 21:40:13 +01:00

Unfortunately not. Have to define custom navigation options for every navigator object created.

Unfortunately not. Have to define custom navigation options for every navigator object created.
neb-b (Migrated from github.com) reviewed 2018-12-01 00:56:46 +01:00
@ -66,6 +66,7 @@ const discoverStack = createStackNavigator({
navigationOptions: ({ navigation }) => ({
title: 'Discover',
headerLeft: menuNavigationButton(navigation),
headerTitleStyle: discoverStyle.titleText
neb-b (Migrated from github.com) commented 2018-12-01 00:56:46 +01:00

You could have a default nav options object,

navigationOptions: ({ navigation }) => ({ ...defaultOptions, title: ... })
You could have a default nav options object, ``` navigationOptions: ({ navigation }) => ({ ...defaultOptions, title: ... }) ```
neb-b (Migrated from github.com) approved these changes 2018-12-01 00:56:49 +01:00
akinwale (Migrated from github.com) reviewed 2018-12-01 23:07:01 +01:00
@ -66,6 +66,7 @@ const discoverStack = createStackNavigator({
navigationOptions: ({ navigation }) => ({
title: 'Discover',
headerLeft: menuNavigationButton(navigation),
headerTitleStyle: discoverStyle.titleText
akinwale (Migrated from github.com) commented 2018-12-01 23:07:01 +01:00

I suppose this could work.

I suppose this could work.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-android#370
No description provided.