Nikatlas 5 anni fa
parent
commit
616cade0d7
4 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  1. 1 0
      .gitignore
  2. 1 1
      dist/modules/BaseContainer/index.js
  3. 4 2
      modules/BaseContainer/index.js
  4. 2 1
      package.json

+ 1 - 0
.gitignore

@@ -8,3 +8,4 @@ npm-debug.*
 *.orig.*
 web-build/
 web-report/
+dist/

+ 1 - 1
dist/modules/BaseContainer/index.js

@@ -1 +1 @@
-"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=BaseContainer;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _Types=_interopRequireDefault(require("../../lib/Types"));var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\BaseContainer\\index.js";function BaseContainer(props){var selected=props.selected,width=props.width,height=props.height,restProps=(0,_objectWithoutProperties2["default"])(props,["selected","width","height"]);if(!width)width=BaseContainer.Inputs.width["default"];if(!height)height=BaseContainer.Inputs.height["default"];return _react["default"].createElement(_reactNative.View,(0,_extends2["default"])({},restProps,{style:{width:width,height:height},__source:{fileName:_jsxFileName,lineNumber:16}}));}BaseContainer.Inputs={width:new _Types["default"].Integer().require()["default"](50),height:new _Types["default"].Integer().require()["default"](50)};
+"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=BaseContainer;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _Types=_interopRequireDefault(require("../../lib/Types"));var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\BaseContainer\\index.js";function BaseContainer(props){var selected=props.selected,width=props.width,height=props.height,overflow=props.overflow,restProps=(0,_objectWithoutProperties2["default"])(props,["selected","width","height","overflow"]);if(!width)width=BaseContainer.Inputs.width["default"];if(!height)height=BaseContainer.Inputs.height["default"];return _react["default"].createElement(_reactNative.View,(0,_extends2["default"])({},restProps,{style:{width:width,height:height,overflow:overflow},__source:{fileName:_jsxFileName,lineNumber:17}}));}BaseContainer.Inputs={width:new _Types["default"].Integer().require()["default"](50),height:new _Types["default"].Integer().require()["default"](50),overflow:new _Types["default"].Integer().require()["default"]('hidden')};

+ 4 - 2
modules/BaseContainer/index.js

@@ -8,12 +8,13 @@ export default function BaseContainer(props) {
 		selected,
 		width,
 		height,
+		overflow,
 		...restProps
 	} = props;
 	if(!width) width = BaseContainer.Inputs.width.default;
 	if(!height) height = BaseContainer.Inputs.height.default;
 	return (
-	    <View {...restProps} style={{width, height}}>
+	    <View {...restProps} style={{width, height, overflow}}>
 	    </View>
 	);
 }
@@ -21,5 +22,6 @@ export default function BaseContainer(props) {
 
 BaseContainer.Inputs = {
 	width: new Types.Integer().require().default(50),
-	height: new Types.Integer().require().default(50)
+	height: new Types.Integer().require().default(50),
+	overflow: new Types.Integer().require().default('hidden')
 }

+ 2 - 1
package.json

@@ -6,7 +6,8 @@
     "ios": "expo start --ios",
     "web": "expo start --web",
     "eject": "expo eject",
-    "transpile": "rm dist -rf && babel lib --out-dir dist/lib --copy-files --ignore __tests__,spec.js,test.js,__snapshots__ && babel modules --out-dir dist/modules --copy-files --ignore __tests__,spec.js,test.js,__snapshots__"
+    "transpile": "rm dist -rf && babel lib --out-dir dist/lib --copy-files --ignore __tests__,spec.js,test.js,__snapshots__ && babel modules --out-dir dist/modules --copy-files --ignore __tests__,spec.js,test.js,__snapshots__",
+    "postinstall" : "rm dist -rf && babel lib --out-dir dist/lib --copy-files --ignore __tests__,spec.js,test.js,__snapshots__ && babel modules --out-dir dist/modules --copy-files --ignore __tests__,spec.js,test.js,__snapshots__"
   },
   "dependencies": {
     "expo": "^34.0.0-experiment.8",