1 |
- "use strict";var _nativeBase=require("native-base");var reactDocs=require('react-docgen');var React=require("react");var originalPropTypes=React.PropTypes;var newPropTypes={};for(var propType in originalPropTypes){Object.defineProperty(newPropTypes,propType,{get:reflectiveGetter(propType)});}React.PropTypes=newPropTypes;function reflectiveGetter(propType){return function(){return createReflectivePropType(propType);};}function createReflectivePropType(type){var fakePropType=null;fakePropType=function fakePropType(propTypes){createInnerPropertyTypes(fakePropType,propTypes);return fakePropType;};fakePropType.type=type;fakePropType.isRequired=function(){};fakePropType.isRequired.type=type;fakePropType.isRequired.required=true;return fakePropType;}function createInnerPropertyTypes(outer,propTypes){outer.inner=propTypes;outer.isRequired.inner=propTypes;}console.log("NativeBase",reactDocs);console.log("NativeBase",_nativeBase.Button);var componentInfo=reactDocs.parse(_nativeBase.Button);console.log("NativeBaseCI",componentInfo);
|