react-native-ui-lib 7.40.0 → 7.40.1-snapshot.6830

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": "react-native-ui-lib",
3
- "version": "7.40.0",
3
+ "version": "7.40.1-snapshot.6830",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -196,7 +196,7 @@ async function generateReleaseNotes(latestVersion,
196
196
  newVersion,
197
197
  fileNamePrefix,
198
198
  repo,
199
- header = '',
199
+ getHeader = () => '',
200
200
  tagPrefix = '',
201
201
  categories = []) {
202
202
  let latestVer, newVer;
@@ -214,6 +214,7 @@ async function generateReleaseNotes(latestVersion,
214
214
  });
215
215
 
216
216
  rl.on('close', () => {
217
+ const header = getHeader(newVer);
217
218
  console.info(`Current latest version is v${latestVer}`);
218
219
  console.info(`Generating release notes out or PRs for v${newVer}`);
219
220
  _generateReleaseNotes(latestVer, newVer, fileNamePrefix, repo, header, tagPrefix, categories);
@@ -5,7 +5,9 @@ interface DrawerItemProps {
5
5
  width?: number;
6
6
  background?: string;
7
7
  text?: string;
8
+ textColor?: string;
8
9
  icon?: number;
10
+ iconColor?: string;
9
11
  onPress?: Function;
10
12
  keepOpen?: boolean;
11
13
  style?: ViewStyle;
@@ -229,14 +229,14 @@ class Drawer extends PureComponent {
229
229
  {!item.customElement && item.icon && <Animated.Image source={item.icon} style={[styles.actionIcon, {
230
230
  width: itemsIconSize,
231
231
  height: itemsIconSize,
232
- tintColor: itemsTintColor,
232
+ tintColor: item.iconColor || itemsTintColor,
233
233
  opacity,
234
234
  transform: [{
235
235
  scale
236
236
  }]
237
237
  }]} />}
238
238
  {!item.customElement && item.text && <Animated.Text style={[styles.actionText, {
239
- color: itemsTintColor,
239
+ color: item.textColor || itemsTintColor,
240
240
  opacity,
241
241
  transform: [{
242
242
  scale
@@ -6,7 +6,7 @@ import { useState, useCallback, useEffect, useRef } from 'react';
6
6
  import { useSharedValue } from 'react-native-reanimated';
7
7
  import { useScrollTo } from "../../hooks";
8
8
  import { Constants } from "../../commons/new";
9
- const FIX_RTL = Constants.isRTL && Constants.isIOS;
9
+ const FIX_RTL = Constants.isRTL;
10
10
  export let OffsetType = /*#__PURE__*/function (OffsetType) {
11
11
  OffsetType["CENTER"] = "CENTER";
12
12
  OffsetType["DYNAMIC"] = "DYNAMIC";