UNPKG

create-native-di

Version:

cli สำหรับ react native ที่มีตัวอย่างโครงสร้างพื้นฐานพร้อมใช้งานประกอบไปด้วย package หลักๆ เช่น mobx,moment,lodash และรองรับภาษา javascript es6 และมี di สำหรับสลับ Store ที่จะติดต่อ api กับ fake mockup ที่สร้างขึ้นเอง ^^

46 lines (42 loc) 1.22 kB
import variable from "./../variables/platform"; export default (variables = variable) => { const platform = variables.platform; const segmentTheme = { height: 45, borderColor: variables.segmentBorderColorMain, flexDirection: "row", justifyContent: "center", backgroundColor: variables.segmentBackgroundColor, "NativeBase.Button": { alignSelf: "center", borderRadius: 0, paddingHorizontal: 20, height: 30, backgroundColor: "transparent", borderWidth: 1, borderLeftWidth: 0, borderColor: variables.segmentBorderColor, elevation: 0, ".active": { backgroundColor: variables.segmentActiveBackgroundColor, "NativeBase.Text": { color: variables.segmentActiveTextColor, }, }, ".first": { borderTopLeftRadius: platform === "ios" ? 5 : undefined, borderBottomLeftRadius: platform === "ios" ? 5 : undefined, borderLeftWidth: 1, }, ".last": { borderTopRightRadius: platform === "ios" ? 5 : undefined, borderBottomRightRadius: platform === "ios" ? 5 : undefined, }, "NativeBase.Text": { color: variables.segmentTextColor, fontSize: 14, }, }, }; return segmentTheme; };