@quintype/native-components 2.29.0-beta.2 → 2.29.1-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.
@@ -1,15 +1,15 @@
1
- #!/bin/bash -e
1
+ # #!/bin/bash -e
2
2
 
3
- npm install
4
- git diff --quiet
3
+ # npm install
4
+ # git diff --quiet
5
5
 
6
- BRANCH=$(git symbolic-ref --short HEAD)
6
+ # BRANCH=$(git symbolic-ref --short HEAD)
7
7
 
8
- if [ "$BRANCH" == 'master' ]
9
- then
10
- npx standard-version
11
- else
12
- npx standard-version --prerelease "$(git symbolic-ref --short HEAD | sed s:/:-:g )" --skip.changelog=true
13
- fi
8
+ # if [ "$BRANCH" == 'master' ]
9
+ # then
10
+ # npx standard-version
11
+ # else
12
+ # npx standard-version --prerelease "$(git symbolic-ref --short HEAD | sed s:/:-:g )" --skip.changelog=true
13
+ # fi
14
14
 
15
- git push --follow-tags origin "$BRANCH"
15
+ # git push --follow-tags origin "$BRANCH"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/native-components",
3
- "version": "2.29.0-beta.2",
3
+ "version": "2.29.1-beta.0",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@ const ProgressBar = (props) => {
25
25
  minimumValue={0}
26
26
  maximumValue={progress.duration}
27
27
  minimumTrackTintColor={COLORS.BRAND_BLACK}
28
- maximumTrackTintColor={COLORS.MONO_6}
28
+ maximumTrackTintColor={COLORS.MONO6}
29
29
  value={progress.position}
30
30
  onValueChange={(val) => props.seekTo(val)}
31
31
  thumbTintColor={COLORS.BRAND_BLACK}
@@ -49,7 +49,7 @@ export const ControlButton = ({ iconName, onPress, FONT_SIZE }) => {
49
49
  const PlayerBase = (props) => {
50
50
  const screenDimensions = useWindowDimensions();
51
51
  const { theme } = useContext(AppTheme);
52
- const { COLORS,translate, FONT_SIZE, DARK_MODE } = theme;
52
+ const { COLORS, translate, FONT_SIZE } = theme;
53
53
  const { card, container, subContainer, playerControlStyle, playbackSpeedText, playerContainer } = playerStyles(screenDimensions);
54
54
  const { style, onTogglePlayback, testID, seekTo, rewindOrForward, isFinishedPlaying, restart, closeButtonHandler } = props;
55
55
 
@@ -99,7 +99,7 @@ const PlayerBase = (props) => {
99
99
  style={playbackSpeedText}
100
100
  onPress={() => props.setShowModal(true)}
101
101
  >
102
- <Text style={{ fontSize: FONT_SIZE.h3, color: DARK_MODE ? COLORS.BRAND_WHITE : COLORS.BRAND_BLACK}}>{`${formatNumber(props.audioRate)}x`}</Text>
102
+ <Text style={{ fontSize: FONT_SIZE.h3, color: COLORS.MONO1}}>{`${formatNumber(props.audioRate)}x`}</Text>
103
103
  </TouchableOpacity>
104
104
  </View>
105
105
  </View>
@@ -93,7 +93,7 @@ const getStoryCards = (
93
93
 
94
94
  {source.length > (storyType === STORY_TYPES.VIDEO_STORY ? 2 : 1)
95
95
  && isMiddleIndexOfArray(index, source)
96
- && getAd(true)}
96
+ && getAd(true, "body")}
97
97
  {/* ^ Requesting mid-content-ad if there are > 1 card
98
98
  (> 2 cards in case of video story since the 1st card gets rendered in header). */}
99
99
 
@@ -106,7 +106,7 @@ const getStoryCards = (
106
106
  {cards.length === 1
107
107
  && source.length > (storyType === STORY_TYPES.VIDEO_STORY ? 2 : 1)
108
108
  && isMiddleIndexOfArray(index, source)
109
- && getAd(true)}
109
+ && getAd(true, "body")}
110
110
  {/* ^ In the case of a story having just 1 card,
111
111
  requesting mid-content-Ad if there are > 1 story-elements in that card
112
112
  (> 2 story-elements in case of video story since the 1st story-element gets rendered in header). */}
@@ -407,7 +407,7 @@ export const Story = ({
407
407
  </View>))}
408
408
 
409
409
 
410
- {getAd()}
410
+ {getAd(false, "header")}
411
411
 
412
412
  {getStoryCards(
413
413
  cards,