@ledgerhq/native-ui 0.8.2 → 0.8.3

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,8 +1,8 @@
1
1
  /// <reference types="styled-components-react-native" />
2
2
  import React from "react";
3
- import { TouchableHighlight, TouchableHighlightProps } from "react-native";
3
+ import { TouchableOpacity, TouchableOpacityProps } from "react-native";
4
4
  import { BaseStyledProps } from "../../styled";
5
- export declare type ButtonProps = TouchableHighlightProps & BaseStyledProps & {
5
+ export declare type ButtonProps = TouchableOpacityProps & BaseStyledProps & {
6
6
  Icon?: React.ComponentType<{
7
7
  size: number;
8
8
  color: string;
@@ -18,7 +18,7 @@ export declare type ButtonProps = TouchableHighlightProps & BaseStyledProps & {
18
18
  pending?: boolean;
19
19
  displayContentWhenPending?: boolean;
20
20
  };
21
- export declare const Base: import("styled-components").StyledComponent<typeof TouchableHighlight, import("styled-components").DefaultTheme, {
21
+ export declare const Base: import("styled-components").StyledComponent<typeof TouchableOpacity, import("styled-components").DefaultTheme, {
22
22
  iconButton?: boolean | undefined;
23
23
  sizeVariant?: ButtonProps["size"];
24
24
  } & Omit<ButtonProps, "size">, never>;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import React, { useCallback, useState, useMemo } from "react";
11
11
  import styled, { useTheme } from "styled-components/native";
12
- import { ActivityIndicator, TouchableHighlight, View } from "react-native";
12
+ import { ActivityIndicator, TouchableOpacity, View } from "react-native";
13
13
  import { buttonSizeStyle, getButtonColorStyle } from "../../cta/Button/getButtonStyle";
14
14
  import { ctaIconSize, ctaTextType } from "../../cta/getCtaStyle";
15
15
  import Text from "../../Text";
@@ -18,7 +18,7 @@ import baseStyled from "../../styled";
18
18
  const IconContainer = styled.View `
19
19
  ${(p) => p.iconButton ? "" : p.iconPosition === "left" ? `margin-right: 10px;` : `margin-left: 10px;`}
20
20
  `;
21
- export const Base = baseStyled(TouchableHighlight).attrs((p) => (Object.assign(Object.assign({}, getButtonColorStyle(p.theme.colors, p).button), {
21
+ export const Base = baseStyled(TouchableOpacity).attrs((p) => (Object.assign(Object.assign({}, getButtonColorStyle(p.theme.colors, p).button), {
22
22
  // Avoid conflict with styled-system's size property by nulling size and renaming it
23
23
  size: undefined, sizeVariant: p.size }))) `
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/native-ui",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Ledger Live - Mobile UI",
5
5
  "repository": {
6
6
  "type": "git",