@fruits-chain/react-native-xiaoshu
Version:
React Native UI library
45 lines (41 loc) • 1.08 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createStyles = void 0;
var _reactNative = require("react-native");
const createStyles = themeVar => {
return _reactNative.StyleSheet.create({
switch: {
justifyContent: 'center',
// backgroundColor: '#f30', // to test ui
borderWidth: themeVar.switch_border_width,
borderStyle: themeVar.switch_border_style,
borderColor: themeVar.switch_border_color
},
node: {
backgroundColor: themeVar.switch_node_background_color,
alignItems: 'center',
justifyContent: 'center',
..._reactNative.Platform.select({
android: {
elevation: 2
},
ios: {
shadowColor: 'rgba(0,0,0,0.2)',
shadowOffset: {
width: 0,
height: 3
},
shadowOpacity: 1,
shadowRadius: 2
}
})
},
disabled: {
opacity: themeVar.switch_disabled_opacity
}
});
};
exports.createStyles = createStyles;
//# sourceMappingURL=style.js.map