@quintype/native-components 2.30.7 → 2.30.8-beta.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/native-components",
3
- "version": "2.30.7",
3
+ "version": "2.30.8-beta.0",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@ const CollectionCardBase = ({
17
17
  onStoryPress,
18
18
  collectionTestID,
19
19
  offset,
20
- horizontalPadding,
20
+ horizontalPadding = 12,
21
21
  initialOffset, /* Number of items to load on first load */
22
22
  hideCollectionTitle,
23
23
  }) => {
@@ -74,8 +74,4 @@ CollectionCardBase.propTypes = {
74
74
  hideCollectionTitle: PropTypes.bool,
75
75
  };
76
76
 
77
- CollectionCardBase.defaultProps = {
78
- horizontalPadding: 12,
79
- };
80
-
81
77
  export const CollectionCard = memo(CollectionCardBase);
@@ -14,7 +14,7 @@ const CollectionTitleBase = (props) => {
14
14
  const styles = collectionTitleStyles(theme);
15
15
  const containerStyle = StyleSheet.flatten([
16
16
  styles.container,
17
- { paddingHorizontal: props.horizontalPadding },
17
+ { paddingHorizontal: props.horizontalPadding = 12},
18
18
  ]);
19
19
  const titleStyle = StyleSheet.flatten([styles.title, props.titleStyle]);
20
20
 
@@ -36,8 +36,4 @@ CollectionTitleBase.propTypes = TouchableOpacityProps
36
36
  horizontalPadding: PropTypes.number,
37
37
  };
38
38
 
39
- CollectionTitleBase.defaultProps = {
40
- horizontalPadding: 12,
41
- };
42
-
43
39
  export const CollectionTitle = memo(CollectionTitleBase);
@@ -36,7 +36,7 @@ const SecondaryStoryCardBase = (props) => {
36
36
  const styles = storyStyles(theme);
37
37
  const containerStyle = StyleSheet.flatten([
38
38
  styles.container,
39
- { paddingHorizontal: props.horizontalPadding },
39
+ { paddingHorizontal: props.horizontalPadding = 12},
40
40
  ]);
41
41
  const headlineStyle = StyleSheet.flatten([
42
42
  styles.headline,
@@ -106,9 +106,4 @@ SecondaryStoryCardBase.propTypes = TouchableOpacityProps && {
106
106
  horizontalPadding: PropTypes.number,
107
107
  };
108
108
 
109
- SecondaryStoryCardBase.defaultProps = {
110
- cdn: '',
111
- horizontalPadding: 12,
112
- };
113
-
114
109
  export const SecondaryStoryCard = memo(SecondaryStoryCardBase);
@@ -20,7 +20,7 @@ const TwoColLayoutBase = ({
20
20
  onStoryPress,
21
21
  collectionTestID,
22
22
  offset,
23
- horizontalPadding,
23
+ horizontalPadding = 12,
24
24
  initialOffset,
25
25
  hideCollectionTitle,
26
26
  }) => {
@@ -96,8 +96,4 @@ TwoColLayoutBase.propTypes = {
96
96
  hideCollectionTitle: PropTypes.bool,
97
97
  };
98
98
 
99
- TwoColLayoutBase.defaultProps = {
100
- horizontalPadding: 12,
101
- };
102
-
103
99
  export const TwoColLayout = memo(TwoColLayoutBase);