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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -