@widergy/mobile-ui 0.36.4 → 0.36.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [0.36.6](https://github.com/widergy/mobile-ui/compare/v0.36.5...v0.36.6) (2023-02-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * checklist handles flatListProps ([#238](https://github.com/widergy/mobile-ui/issues/238)) ([70070e6](https://github.com/widergy/mobile-ui/commit/70070e6a500f8f7239e600d324e57e0dfb291935))
7
+
8
+ ## [0.36.5](https://github.com/widergy/mobile-ui/compare/v0.36.4...v0.36.5) (2023-01-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * scrollviews ([#236](https://github.com/widergy/mobile-ui/issues/236)) ([ec2d461](https://github.com/widergy/mobile-ui/commit/ec2d461b5d2b3908996fe8c7847a74d2c198e228))
14
+
1
15
  ## [0.36.4](https://github.com/widergy/mobile-ui/compare/v0.36.3...v0.36.4) (2023-01-24)
2
16
 
3
17
 
@@ -93,7 +93,8 @@ class CheckList extends PureComponent {
93
93
  error,
94
94
  disabledSelectAll,
95
95
  disabledStyleEnabled,
96
- disabledStyle
96
+ disabledStyle,
97
+ flatListProps = {}
97
98
  } = this.props;
98
99
  const disableContainerStyle =
99
100
  disabledStyleEnabled && disabledSelectAll ? disabledStyle || styles.disabled : {};
@@ -127,6 +128,7 @@ class CheckList extends PureComponent {
127
128
  keyExtractor={keyExtractor}
128
129
  ItemSeparatorComponent={includesSeparator && this.renderSeparator}
129
130
  extraData={input.value}
131
+ {...flatListProps}
130
132
  />
131
133
  )}
132
134
  <CaptionLabel error={error} />
@@ -1,5 +1,5 @@
1
1
  import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
- import { bool, number, shape, oneOfType, string, arrayOf, elementType, any } from 'prop-types';
2
+ import { bool, number, shape, oneOfType, string, arrayOf, elementType, any, object } from 'prop-types';
3
3
 
4
4
  export default {
5
5
  style: ViewPropTypes.style,
@@ -23,5 +23,6 @@ export default {
23
23
  ),
24
24
  input: elementType,
25
25
  checkedColor: string,
26
- error: string
26
+ error: string,
27
+ flatListProps: object
27
28
  };
@@ -20,7 +20,7 @@ const Bars = ({ rateStages, withoutStages }) => {
20
20
  const subStages = rateStages.flatMap(rate => rate?.sub_rate_stages);
21
21
 
22
22
  return (
23
- <View style={[styles.container, withoutStages && styles.withoutStages]}>
23
+ <View style={styles.container}>
24
24
  {withoutStages
25
25
  ? subStages.map((subStage, index) => (
26
26
  <SubStage
@@ -1,6 +1,5 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
3
  export default StyleSheet.create({
4
- container: { flexDirection: 'row' },
5
- withoutStages: { flex: 1 }
4
+ container: { flexDirection: 'row' }
6
5
  });
@@ -4,7 +4,6 @@ export const ICON_SIZE = 24;
4
4
 
5
5
  export default StyleSheet.create({
6
6
  container: {
7
- marginTop: 35,
8
7
  alignItems: 'flex-start'
9
8
  },
10
9
  label: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "0.36.4",
5
+ "version": "0.36.6",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [