Share `Play Store` Link in `DrawerNavigator` Menu via react-navigation -


i have 3 screen items in drawernavigator menu.

how add share play store link in drawernavigator menu under item "3"?
mean not real page, aplication share link icon, when clicks share area opens.

const router = drawernavigator(     {           home: { screen: mainscreen },         new: { screen: news },         photo: { screen: photos },     }) 

you can use custom contentcomponent option https://reactnavigation.org/docs/navigators/drawer#providing-a-custom-contentcomponent drawernavigator. this

    const router = drawernavigator(       {            home: { screen: mainscreen },          new: { screen: news },          photo: { screen: photos },      },      {      contentcomponent: props => {         return (           <scrollview>             <draweritems {...props} />             <touchableopacity               onpress={() => {                 share.share({                   message: play_store_url                 });               }}>                 <text>                   share                 </text>             </touchableopacity>           </scrollview>         );       }    ) 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -