Commit 1667a64e by 陈敏

提取APP标题文字到config

parent 43f221eb
import React, {Component} from 'react';
import {Image, Text, View} from 'react-native';
import {appName} from '../utils/config';
class HomeLayout extends Component {
render() {
return (
......@@ -15,14 +15,13 @@ class HomeLayout extends Component {
style={{marginLeft: 20}}
source={require('../assets/Vertical/24h.png')}
/>
<Text style={styles.titleText}>仲马购人工智能</Text>
<Text style={styles.titleText}>{appName}</Text>
</View>
{this.props.children}
</View>
);
}
}
const styles = {
title: {
top: 0,
......
......@@ -7,6 +7,7 @@ export const login = `https://m${app}.vs-u.com`;
export const qrHost = login;
export const imgUrl = 'http://barcod.oss-cn-shenzhen.aliyuncs.com/images/';
export const watermark = '.jpg?x-oss-process=style/zmgo_thumb_watermark';
export const appName = '仲马购';
window.defaultCount = 0;
......@@ -17,4 +18,5 @@ export default {
isProd,
imgUrl,
watermark,
appName,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment