react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[V2][iOS] title and subtitle and styles from sideMenu

Open igor-martucelli opened this issue 7 years ago • 4 comments

Problems with sideMenu

When I use the sideMenu the title and subtitle putted don't appear in iOS, also the styles and effects not work as for exemple animationType, openGesture, shouldStretchDrawer at least this don't had effect.

Steps to Reproduce / Code Snippets / Screenshots

Style in default options

sideMenu:
{
	left:
	{
		width: 230,
		animationType: 'parallax',
		shouldStretchDrawer: false
	},
	openGestureMode: 'bezel'
}

SideMenu

Navigation.setStackRoot(componentId, 
{
	sideMenu:
	{
		left:
		{
			component:
			{
				name: 'app.Drawer'
			},
		},
		center:
		{
			stack:
			{
				id: 'MAIN',
				children:
				[{
					component:
					{
						name: 'app.Main',
						options:
						{
							topBar:
							{
								title: { text: 'Title' },
								subtitle: { text: 'subtilte' }
							}
						}
					}
				}],
			}
		}
	}
});

iOS print's img_0054 img_0055 Android print's screenshot_20181227-111033 screenshot_20181227-111304


Environment

  • React Native Navigation version: v2.2
  • React Native version: v57.7
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): device | iOS version 12.1.1 | Debug

igor-martucelli avatar Dec 27 '18 13:12 igor-martucelli

Try this:

        Navigation.setStackRoot('MAIN', {
            component:
            {
                name: 'app.Main',
                options: {
                    animations: {
                        setStackRoot: {
                            enabled: false,
                        },
                    },
                },
            }
        })
        Navigation.mergeOptions(this.props.componentId, {
            sideMenu: {
                left: {
                    visible: false,
                },
            },
        })

cjroth avatar Dec 28 '18 20:12 cjroth

Hello @cjroth unfortunately this it is don't work.

igor-martucelli avatar Jan 01 '19 16:01 igor-martucelli

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Feb 01 '19 11:02 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Feb 08 '19 12:02 stale[bot]