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.
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
Post a Comment