create-native-di
Version:
cli สำหรับ react native ที่มีตัวอย่างโครงสร้างพื้นฐานพร้อมใช้งานประกอบไปด้วย package หลักๆ เช่น mobx,moment,lodash และรองรับภาษา javascript es6 และมี di สำหรับสลับ Store ที่จะติดต่อ api กับ fake mockup ที่สร้างขึ้นเอง ^^
34 lines (32 loc) • 916 B
JavaScript
const React = require("react-native");
const { Platform, Dimensions } = React;
const deviceHeight = Dimensions.get("window").height;
const deviceWidth = Dimensions.get("window").width;
export default {
drawerCover: {
alignSelf: "stretch",
height: deviceHeight / 3.5,
width: null,
position: "relative",
marginBottom: 10
},
drawerImage: {
position: "absolute",
left: Platform.OS === "android" ? deviceWidth / 10 : deviceWidth / 9,
top: Platform.OS === "android" ? deviceHeight / 13 : deviceHeight / 12,
width: 210,
height: 75,
resizeMode: "cover"
},
text: {
fontWeight: Platform.OS === "ios" ? "500" : "400",
fontSize: 16,
marginLeft: 20
},
badgeText: {
fontSize: Platform.OS === "ios" ? 13 : 11,
fontWeight: "400",
textAlign: "center",
marginTop: Platform.OS === "android" ? -3 : undefined
}
};