1 2 3 4 5 6 7 8 9 10 11 | QN.navigator.push({ query: {}, settings: { animate: true , } }).then(result => { console.log(result); }, error => { console.log(error); }); |
Navigator.push(Navigator.go)还附带了其他的参数实现更加强大的功能。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 'use strict' ; import { createElement, Component, render, findDOMNode } from 'rax' ; import { View, Text, TouchableHighlight, Modal, Button, ListView, Image, Link} from 'nuke' ; import QN from 'QAP-SDK' ; class Demo extends Component { constructor(props) { super (props); } render() { return ( ) } } render(<Demo />); |
更多Link组件的用法,请点击查看更多。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 'use strict' ; import { createElement, Component, render, findDOMNode } from 'rax' ; import { View, Text, TouchableHighlight, Modal, Button, ListView, Image, Link, Navigator} from 'nuke' ; import QN from 'QAP-SDK' ; class Demo extends Component { onPress = ()=> { } render() { return ( <View> <Button onPress={ this .onPress}>打开淘宝页面</Button> </View>); } } render(<Demo />); |
更多Navigator组件的用法,请点击查看更多。