@quintype/native-components 2.20.8 → 2.20.9

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
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.20.9](https://github.com/quintype/native-components/compare/v2.20.8...v2.20.9) (2023-07-10)
6
+
5
7
  ### [2.20.8](https://github.com/quintype/native-components/compare/v2.20.7...v2.20.8) (2023-06-30)
6
8
 
7
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/native-components",
3
- "version": "2.20.8",
3
+ "version": "2.20.9",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -7,6 +7,7 @@ import {
7
7
  SafeAreaView,
8
8
  FlatList,
9
9
  TouchableOpacity,
10
+ ScrollView,
10
11
  } from 'react-native';
11
12
  import Icon from 'react-native-vector-icons/FontAwesome';
12
13
  import FastImage from 'react-native-fast-image';
@@ -104,7 +105,7 @@ export const StoryGallery = ({ cdn, card }) => {
104
105
  const imageUri = `${data?.cdn}/${data?.slug}`;
105
106
 
106
107
  return (
107
- <View style={galleryStyles.carouselContainer}>
108
+ <ScrollView style={galleryStyles.carouselContainer}>
108
109
  <FastImage
109
110
  source={{ uri: imageUri }}
110
111
  resizeMode={FastImage.resizeMode.contain}
@@ -128,7 +129,7 @@ export const StoryGallery = ({ cdn, card }) => {
128
129
  Linking.openURL(href);
129
130
  }}
130
131
  />
131
- </View>
132
+ </ScrollView>
132
133
  );
133
134
  };
134
135
 
@@ -3,7 +3,7 @@ import { useContext } from 'react';
3
3
  import { AppTheme } from '../../utils';
4
4
 
5
5
  export const styles = ({ FONT_SIZE }) => {
6
- const { width: deviceWidth } = Dimensions.get('window');
6
+ const { width: deviceWidth, height: deviceHeight } = Dimensions.get('window');
7
7
  const { theme } = useContext(AppTheme);
8
8
  const { COLORS, DARK_MODE, FONT_FAMILY } = theme;
9
9
 
@@ -16,16 +16,15 @@ export const styles = ({ FONT_SIZE }) => {
16
16
  width: '100%',
17
17
  flexDirection: 'row',
18
18
  flexWrap: 'wrap',
19
- justifyContent: 'space-between',
20
19
  },
21
20
  halfWidth: {
22
21
  width: (deviceWidth - 30) / 2,
23
22
  height: 124,
24
23
  },
25
24
  fullWidth: {
26
- width: (deviceWidth - 30) / 3,
27
- height: (deviceWidth - 30) / 3,
28
- marginVertical: 2.5,
25
+ width: (deviceWidth - 40) / 3,
26
+ height: (deviceWidth - 40) / 3,
27
+ margin: 2.5,
29
28
  },
30
29
  descText: {
31
30
  fontSize: FONT_SIZE.h2,
@@ -110,7 +109,7 @@ export const styles = ({ FONT_SIZE }) => {
110
109
  },
111
110
  carouselImage: {
112
111
  width: '100%',
113
- height: '80%',
112
+ height: 2*deviceHeight/3,
114
113
  },
115
114
  carouselContainer: {
116
115
  width: deviceWidth - 10,