From dcbeba082805ff98eac314ccc8e01b8ae1985724 Mon Sep 17 00:00:00 2001 From: Van Date: Tue, 10 Jan 2017 11:09:35 +0800 Subject: [PATCH] update demo --- demo/App.js | 15 ++++++ demo/QQFavorite.js | 101 ++++++++++++++++++++++++++++++++++ demo/QQShare.js | 113 ++++++++++++++++++++++++++++++++++++++ demo/QQZoneShare.js | 101 ++++++++++++++++++++++++++++++++++ demo/index.android.js | 120 +---------------------------------------- demo/index.ios.js | 123 +----------------------------------------- demo/mainPage.js | 117 ++++++++++++++++++++++++++++++++++++++++ demo/navigation.js | 58 ++++++++++++++++++++ demo/navigationBar.js | 70 ++++++++++++++++++++++++ 9 files changed, 577 insertions(+), 241 deletions(-) create mode 100644 demo/App.js create mode 100644 demo/QQFavorite.js create mode 100644 demo/QQShare.js create mode 100644 demo/QQZoneShare.js create mode 100644 demo/mainPage.js create mode 100644 demo/navigation.js create mode 100644 demo/navigationBar.js diff --git a/demo/App.js b/demo/App.js new file mode 100644 index 0000000..60c5719 --- /dev/null +++ b/demo/App.js @@ -0,0 +1,15 @@ +import React, { Component } from 'react'; +import { + AppRegistry, + View +} from 'react-native'; +import Navigation from './navigation'; +import MainPage from './mainPage' +export default class Test extends Component { + render() { + return ( + + ) + } +} +AppRegistry.registerComponent('Test', () => Test); diff --git a/demo/QQFavorite.js b/demo/QQFavorite.js new file mode 100644 index 0000000..404b0b4 --- /dev/null +++ b/demo/QQFavorite.js @@ -0,0 +1,101 @@ +import React, { Component } from 'react'; +import { + AppRegistry, + StyleSheet, + Text, + ScrollView, + Alert, + Dimensions, + Button, + Platform, + Navigator, + CameraRoll, + View +} from 'react-native'; +import * as QQ from "react-native-qqsdk"; +import NavigationBar from './navigationBar'; +import resolveAssetSource from 'resolveAssetSource'; +export default class QQZoneShare extends Component { + static propTypes = { + navigator: Navigator.propTypes.navigator, + }; + render() { + return ( + + {this.props.navigator.pop();}} + /> + + +