Kaynağa Gözat

用户协议

杜鑫 4 yıl önce
ebeveyn
işleme
e33a7705f4
2 değiştirilmiş dosya ile 31 ekleme ve 0 silme
  1. 7 0
      js/navigator/AppNavigators.js
  2. 24 0
      js/page/UserAgree.js

+ 7 - 0
js/navigator/AppNavigators.js

@@ -12,6 +12,7 @@ import HomePage from "../page/HomePage"
 import UserCard from "../page/UserCard"
 import GirlFrienfTerm from "../page/GirlFrienfTerm"
 import GiftPay from "../page/GiftPay"
+import UserAgree from "../page/UserAgree"
 
 const InitNavigator = createStackNavigator({
     LoginPage:{
@@ -28,6 +29,12 @@ const InitNavigator = createStackNavigator({
     }
 })
 const MainNavigator = createStackNavigator({
+    UserAgree:{
+        screen:UserAgree,
+        navigationOptions:{
+            headerTitle:"用户协议"
+        }
+    },
     GiftPay:{
         screen:GiftPay,
         navigationOptions:{

+ 24 - 0
js/page/UserAgree.js

@@ -0,0 +1,24 @@
+import React, { Component } from "react"
+import { StyleSheet, Text, View } from "react-native"
+import { unitWidth } from "../utils/AdapterUtil";
+
+export default class UserAgree extends Component {
+    render() {
+        return (
+            <View style={styles.container}>
+                <Text style={styles.text}>用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议用户协议</Text>
+            </View>
+        )
+    }
+}
+const styles = StyleSheet.create({
+    container: {
+        flex: 1,
+        alignItems: "center"
+    },
+    text:{
+        fontSize:unitWidth * 28,
+        color:"#333333"
+    }
+
+})