@quintype/native-components 2.28.2 → 2.28.4

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.28.2",
3
+ "version": "2.28.4",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -29,6 +29,10 @@ const ResponsiveImageBase = (props) => {
29
29
  borderRadius: 12,
30
30
  overflow: "hidden",
31
31
  },
32
+ props.imageWidth && {
33
+ width: props.imageWidth,
34
+ height: (props.imageWidth * 9) / 16,
35
+ },
32
36
  ])
33
37
 
34
38
  const flattenedImageStyle = StyleSheet.flatten([
@@ -97,6 +101,7 @@ const ResponsiveImageBase = (props) => {
97
101
  source={sourceURI}
98
102
  resizeMode={FastImage.resizeMode.contain}
99
103
  {...props}
104
+ onLoad={()=>setPlaceholder(false)}
100
105
  />
101
106
  )
102
107
  }
@@ -16,7 +16,6 @@ export const storyStyles = ({ COLORS, FONT_SIZE, FONT_FAMILY, lineHeightMultipli
16
16
  gap: 10,
17
17
  },
18
18
  image: {
19
- marginBottom: 4,
20
19
  marginTop: storyCardOptions.enableSectionName ? FONT_SIZE.h4 * lineHeightMultiplier + 8 : 4,
21
20
  },
22
21
  icon: {
@@ -55,4 +55,4 @@ export const StoryTemplateIcon = ({
55
55
  default:
56
56
  return null;
57
57
  }
58
- };
58
+ };
@@ -20,4 +20,4 @@ export const storyTemplateIconStyles = (COLORS, FONT_SIZE, cardType) => StyleShe
20
20
  borderRadius: 50,
21
21
  backgroundColor: COLORS.BRAND_3,
22
22
  },
23
- });
23
+ });
@@ -40,7 +40,7 @@ export { IconText } from './IconText';
40
40
  export { CustomSwitch } from './CustomSwitch';
41
41
  export { RelatedStoriesCard } from './RelatedStoriesCard';
42
42
  export { References } from './References';
43
+ export { StoryTemplateIcon } from './StoryTemplateIcon'
43
44
  export { StoryCardDetailsRow } from './StoryCardDetailsRow';
44
45
  export { TextA } from './TextA'
45
- export { TextQ } from './TextQ'
46
- export { StoryTemplateIcon } from './StoryTemplateIcon'
46
+ export { TextQ } from './TextQ'