@redu/react-native-component-layout
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -13,2 +13,3 @@ /** | ||
* | ||
* @param flex | ||
* @param all | ||
@@ -34,2 +35,3 @@ * @param top | ||
const Break = ({ | ||
flex, | ||
all, | ||
@@ -82,2 +84,3 @@ top, | ||
Break.defaultProps = { | ||
flex: null, | ||
bottom: Break.defaultPadding, | ||
@@ -90,2 +93,3 @@ hr: false, | ||
Break.propTypes = { | ||
flex: PropTypes.any, | ||
all: PropTypes.number, | ||
@@ -92,0 +96,0 @@ top: PropTypes.number, |
{ | ||
"name": "@redu/react-native-component-layout", | ||
"version": "1.0.2", | ||
"_from": "@redu/react-native-component-layout", | ||
"_id": "@redu/react-native-component-layout@1.0.2", | ||
"_inBundle": false, | ||
"_integrity": "sha512-lWR2pWmiev2mmcFnunaYqbrcRLf3rckuEv/tyYWJ1QbjbMkBSSEiDvnc9s1XvJ5uQh6FAkdzqhrJQqDTED9QGg==", | ||
"_location": "/@redu/react-native-component-layout", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"type": "tag", | ||
"registry": true, | ||
"raw": "@redu/react-native-component-layout", | ||
"name": "@redu/react-native-component-layout", | ||
"escapedName": "@redu%2freact-native-component-layout", | ||
"scope": "@redu", | ||
"rawSpec": "", | ||
"saveSpec": null, | ||
"fetchSpec": "latest" | ||
}, | ||
"_requiredBy": [ | ||
"#USER", | ||
"/" | ||
], | ||
"_resolved": "https://registry.npmjs.org/@redu/react-native-component-layout/-/react-native-component-layout-1.0.2.tgz", | ||
"_shasum": "2aaea38d9f7d67671bee0e5a4ec1d23d14a1f0c3", | ||
"_spec": "@redu/react-native-component-layout", | ||
"_where": "/Users/lukefarrell/Ashleigh/com.redu.Ashleigh", | ||
"author": "", | ||
"bundleDependencies": false, | ||
"deprecated": false, | ||
"description": "Layout components", | ||
"gitHead": "99bb4e37c99b99f457c02cc06f0679a6ea338e37", | ||
"license": "ISC", | ||
"main": "index.js", | ||
"name": "@redu/react-native-component-layout", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"gitHead": "9909bca3951da4ac737b279ebf06bbc09a337816" | ||
"version": "1.0.3" | ||
} |
14
Wrap.js
@@ -7,3 +7,3 @@ /** | ||
import React from "react"; | ||
import { View } from "react-native"; | ||
import { View, TouchableOpacity } from "react-native"; | ||
import PropTypes from "prop-types"; | ||
@@ -14,2 +14,3 @@ | ||
* | ||
* @param flex | ||
* @param all | ||
@@ -25,2 +26,3 @@ * @param top | ||
* @param align | ||
* @param onPress, | ||
* @param style | ||
@@ -33,2 +35,3 @@ * @param children | ||
const Wrap = ({ | ||
flex, | ||
all, | ||
@@ -44,2 +47,3 @@ top, | ||
align, | ||
onPress, | ||
style, | ||
@@ -49,4 +53,6 @@ children, | ||
}) => { | ||
const SometimesTouchableView = onPress ? View : TouchableOpacity; | ||
return ( | ||
<View | ||
<SometimesTouchableView | ||
style={[ | ||
@@ -67,3 +73,3 @@ { | ||
{children} | ||
</View> | ||
</SometimesTouchableView> | ||
); | ||
@@ -74,2 +80,3 @@ }; | ||
Wrap.defaultProps = { | ||
flex: 1, | ||
all: Wrap.defaultPadding, | ||
@@ -82,2 +89,3 @@ row: false, | ||
Wrap.propTypes = { | ||
flex: PropTypes.any, | ||
all: PropTypes.number, | ||
@@ -84,0 +92,0 @@ top: PropTypes.number, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8848
7
341
0