@actbase/native
Advanced tools
Comparing version 0.1.26 to 0.1.27
@@ -175,2 +175,4 @@ declare const styles: { | ||
borderBottomColor: string; | ||
minHeight: number; | ||
alignItems: "center"; | ||
}; | ||
@@ -177,0 +179,0 @@ systemSectionItemFoot: { |
@@ -166,3 +166,3 @@ "use strict"; | ||
backgroundColor: 'rgba(255,255,255,0.7)', | ||
paddingVertical: 5, | ||
paddingVertical: 8, | ||
alignItems: 'flex-start', | ||
@@ -186,3 +186,5 @@ paddingHorizontal: 10, | ||
borderBottomWidth: 1, | ||
borderBottomColor: '#eee' | ||
borderBottomColor: '#eee', | ||
minHeight: 40, | ||
alignItems: 'center' | ||
}, | ||
@@ -189,0 +191,0 @@ systemSectionItemFoot: { |
@@ -83,2 +83,14 @@ "use strict"; | ||
var Switch = function Switch(_a) { | ||
var value = _a.value; | ||
return _react["default"].createElement(_reactNative.View, { | ||
style: { | ||
width: 6, | ||
height: 6, | ||
borderRadius: 3, | ||
backgroundColor: value ? '#0f0' : '#ccc' | ||
} | ||
}); | ||
}; | ||
var System = function System(_a) { | ||
@@ -264,13 +276,4 @@ var _b, _c; | ||
} | ||
}, "Network"), _react["default"].createElement(_reactNative.Switch, { | ||
value: (_b = options.module) === null || _b === void 0 ? void 0 : _b.network, | ||
disabled: !setOptions, | ||
onValueChange: function onValueChange(value) { | ||
if (!setOptions) return; | ||
var o = (0, _tslib.__assign)((0, _tslib.__assign)({}, options), { | ||
module: (0, _tslib.__assign)({}, options.module) | ||
}); | ||
o.module.network = value; | ||
setOptions(o); | ||
} | ||
}, "Network"), _react["default"].createElement(Switch, { | ||
value: !!((_b = options.module) === null || _b === void 0 ? void 0 : _b.network) | ||
})), _react["default"].createElement(_reactNative.TouchableOpacity, { | ||
@@ -296,13 +299,4 @@ style: [_styles["default"].systemSectionItem, _styles["default"].systemSectionItemFoot], | ||
} | ||
}, "Console"), _react["default"].createElement(_reactNative.Switch, { | ||
value: (_c = options.module) === null || _c === void 0 ? void 0 : _c.console, | ||
disabled: !setOptions, | ||
onValueChange: function onValueChange(value) { | ||
if (!setOptions) return; | ||
var o = (0, _tslib.__assign)((0, _tslib.__assign)({}, options), { | ||
module: (0, _tslib.__assign)({}, options.module) | ||
}); | ||
o.module.console = value; | ||
setOptions(o); | ||
} | ||
}, "Console"), _react["default"].createElement(Switch, { | ||
value: !!((_c = options.module) === null || _c === void 0 ? void 0 : _c.console) | ||
}))), | ||
@@ -309,0 +303,0 @@ renderSectionHeader: function renderSectionHeader(_a) { |
{ | ||
"name": "@actbase/native", | ||
"version": "0.1.26", | ||
"version": "0.1.27", | ||
"description": "React-Native Generic UI Components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
263743
3773