ui-rn 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Touch/Props.ts +1 -0
- package/src/Touch/Style.ts +2 -1
package/package.json
CHANGED
package/src/Touch/Props.ts
CHANGED
|
@@ -55,6 +55,7 @@ export interface PropsApp {
|
|
|
55
55
|
gradient?: 'vertical' | 'horizontal'
|
|
56
56
|
/** Set flex to 1 */
|
|
57
57
|
flexOne?: boolean
|
|
58
|
+
flex1?: boolean
|
|
58
59
|
/** Shadow color or boolean to enable default shadow */
|
|
59
60
|
shadowColor?: string | boolean
|
|
60
61
|
/** Border options for each side */
|
package/src/Touch/Style.ts
CHANGED
|
@@ -118,7 +118,8 @@ export const Style: any = (props: Props) => {
|
|
|
118
118
|
// Width and height shortcuts
|
|
119
119
|
props.w100 && { width: '100%' },
|
|
120
120
|
props.h100 && { height: '100%' },
|
|
121
|
-
|
|
121
|
+
props.flex1 && { flex: 1 },
|
|
122
|
+
props.flexOne && { flex: 1 },
|
|
122
123
|
// Screen dimensions
|
|
123
124
|
props.widthScreen && { width: Dimensions.get('screen').width },
|
|
124
125
|
props.heightScreen && { height: Dimensions.get('screen').height },
|