react-native-ui-lib 7.44.0 → 7.45.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": "react-native-ui-lib",
3
- "version": "7.44.0",
3
+ "version": "7.45.0",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -179,7 +179,7 @@ const Avatar = forwardRef((props, ref) => {
179
179
  const Container = onPress ? TouchableOpacity : View;
180
180
  return <Container style={_containerStyle} ref={ref} testID={testID} onPress={onPress} accessible={!_isUndefined(onPress)} accessibilityLabel={'Avatar'} accessibilityRole={onPress ? 'button' : 'image'} hitSlop={onPress ? hitTargetPadding : undefined} {...accessibilityProps}>
181
181
  <View testID={`${testID}.container`} style={textContainerStyle}>
182
- {!_isUndefined(text) && <Text numberOfLines={1} ellipsizeMode={labelEllipsizeMode} style={textStyle} testID={`${testID}.label`}>
182
+ {!_isUndefined(text) && <Text numberOfLines={1} ellipsizeMode={labelEllipsizeMode} style={textStyle} testID={`${testID}.label`} accessibilityLabel={accessibilityProps?.accessibilityLabel}>
183
183
  {text}
184
184
  </Text>}
185
185
  </View>
@@ -442,7 +442,7 @@ class Carousel extends Component {
442
442
  const containerStyle = pageControlPosition === PageControlPosition.UNDER ? {
443
443
  marginVertical: 16 - this.getContainerPaddingVertical()
444
444
  } : styles.pageControlContainerStyle;
445
- return <PageControl size={size} spacing={spacing} containerStyle={containerStyle} inactiveColor={inactiveColor} color={color} {...others} numOfPages={pagesCount} currentPage={currentStandingPage} />;
445
+ return <PageControl size={size} spacing={spacing} containerStyle={[containerStyle, Constants.isRTL && Constants.isIOS && styles.flip]} inactiveColor={inactiveColor} color={color} {...others} numOfPages={pagesCount} currentPage={currentStandingPage} />;
446
446
  }
447
447
  }
448
448
  renderCounter() {
@@ -524,6 +524,11 @@ const styles = StyleSheet.create({
524
524
  top: 12,
525
525
  right: 12
526
526
  },
527
+ flip: {
528
+ transform: [{
529
+ scaleX: -1
530
+ }]
531
+ },
527
532
  pageControlContainerStyle: {
528
533
  position: 'absolute',
529
534
  bottom: 16,