@actbase/native
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,5 +0,3 @@ | ||
import { TouchableOpacity } from 'react-native'; | ||
export declare const Actbase: { | ||
Touchable: { | ||
renderElement: typeof TouchableOpacity; | ||
activeOpacity: number; | ||
@@ -6,0 +4,0 @@ waitDelay: number; |
@@ -7,8 +7,4 @@ "use strict"; | ||
exports["default"] = exports.Actbase = void 0; | ||
var _reactNative = require("react-native"); | ||
var Actbase = { | ||
Touchable: { | ||
renderElement: _reactNative.TouchableOpacity, | ||
activeOpacity: 0.8, | ||
@@ -15,0 +11,0 @@ waitDelay: 1 |
/// <reference types="react" /> | ||
import { TouchableOpacityProps } from 'react-native'; | ||
declare type ALL_VALUE = any; | ||
interface TouchableProps extends TouchableOpacityProps { | ||
onPress?: (e: any) => Promise<any> | null | undefined | void; | ||
onPress?: (e: ALL_VALUE) => Promise<ALL_VALUE> | null | undefined | void; | ||
renderComponent: ALL_VALUE; | ||
} | ||
declare const Touchable: (props: TouchableProps) => JSX.Element; | ||
export default Touchable; |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _reactNative = require("react-native"); | ||
var _Actbase = _interopRequireDefault(require("../Actbase")); | ||
@@ -24,3 +26,3 @@ | ||
var Touchable = function Touchable(props) { | ||
var Element = _Actbase["default"].Touchable.renderElement; | ||
var Element = props.renderComponent || _reactNative.TouchableOpacity; | ||
@@ -27,0 +29,0 @@ var _a = (0, _react.useState)(false), |
export { Application, Providers } from './Application'; | ||
export declare const Actbase: { | ||
Touchable: { | ||
renderElement: typeof import("react-native").TouchableOpacity; | ||
activeOpacity: number; | ||
@@ -6,0 +5,0 @@ waitDelay: number; |
{ | ||
"name": "@actbase/native", | ||
"version": "0.1.1", | ||
"description": "React-Native Design Components", | ||
"version": "0.1.2", | ||
"description": "React-Native Generic UI Components", | ||
"main": "lib/index.js", | ||
@@ -9,4 +9,4 @@ "module": "lib/index.js", | ||
"author": { | ||
"name": "Trabricks LLC", | ||
"email": "apps@trabricks.com" | ||
"name": "Actbase LLC", | ||
"email": "service@actbase.io" | ||
}, | ||
@@ -13,0 +13,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14762
223