<Page xmlns="http://schemas.nativescript.org/tns.xsd">
    <Page.actionBar>
        <ActionBar backgroundColor="green" title="Main View" icon="">
            <NavigationButton text="Back" icon="" tap="" />
            <ActionBar.actionItems>
                <ActionItem icon="" text="Left" tap="" ios.position="left" />
                <ActionItem icon="" text="Right" tap="" ios.position="right" />
            </ActionBar.actionItems>
        </ActionBar>
    </Page.actionBar>
    <StackLayout>
        <button text="Open Modal" tap="btnClick" />
        <button text="Go Back" tap="btnBack" />
    </StackLayout>
</Page>