android - How to link a button to detail screen in React Native -


what best practice link whole area below screen? whole area marked orange needs clickable , takes screen. should put whole area view? best practice here? appreciate code example if possible.

area marked orange needs clickable

yes, can wrap orange area using view component , try use react native router flux, popular , easiest way navigate screen/component.

import react, { component } 'react'; import { touchableopacity, view } 'react-native'; import { actions } 'react-native-router-flux'; ...  export default class helloworldlist extends component {    ...    render() {     return (       <touchableopacity onpress={() => actions.componentkey}>         <view>           ...         </view>       </touchableopacity>     );   } } 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -