secullum-react-native-ui 4.16.1-beta → 4.16.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.
@@ -5,6 +5,7 @@ export interface ModalProperties {
5
5
  visible: boolean;
6
6
  overlayStyle?: StyleProp<ViewStyle>;
7
7
  onRequestClose?: () => void;
8
+ onDismiss?: () => void;
8
9
  }
9
10
  interface ModalState {
10
11
  isMounted: boolean;
@@ -19,9 +19,9 @@ class Modal extends React.Component {
19
19
  }
20
20
  }
21
21
  render() {
22
- const { children, visible, overlayStyle, onRequestClose } = this.props;
22
+ const { children, visible, overlayStyle, onRequestClose, onDismiss } = this.props;
23
23
  const { isMounted } = this.state;
24
- return (React.createElement(react_native_1.Modal, { animationType: "fade", transparent: true, visible: visible, supportedOrientations: ['landscape', 'portrait'], onRequestClose: onRequestClose, onShow: this.handleShow },
24
+ return (React.createElement(react_native_1.Modal, { animationType: "fade", transparent: true, visible: visible, supportedOrientations: ['landscape', 'portrait'], onRequestClose: onRequestClose, onShow: this.handleShow, onDismiss: onDismiss },
25
25
  React.createElement(react_native_1.TouchableWithoutFeedback, { onPress: onRequestClose },
26
26
  React.createElement(react_native_1.View, { style: [styles.overlay, overlayStyle] }, react_native_1.Platform.OS !== 'android' || isMounted ? children : React.createElement(react_native_1.View, null)))));
27
27
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { KeyboardType, StyleProp, TextInput, TextInputKeyPressEventData, TextStyle, ViewStyle, TextInputProps, ReturnKeyTypeOptions, ColorValue } from 'react-native';
2
+ import { KeyboardType, StyleProp, TextInput, TextInputKeyPressEventData, TextStyle, ViewStyle, TextInputProps, ReturnKeyTypeOptions } from 'react-native';
3
3
  export interface TextBoxInputProps extends TextInputProps {
4
4
  ref: (ref: TextInput) => void;
5
5
  }
@@ -8,7 +8,6 @@ export interface TextBoxProperties {
8
8
  label?: string;
9
9
  icon?: string;
10
10
  placeholder?: string;
11
- placeholderTextColor?: ColorValue;
12
11
  value: string;
13
12
  onChange?: (value: string) => void;
14
13
  onKeyPress?: (nativeEvent: TextInputKeyPressEventData) => void;
@@ -76,7 +76,9 @@ class TextBox extends React.Component {
76
76
  //@ts-ignore: no Android < 6 essa é a prop que deixa o underline transparente. https://stackoverflow.com/questions/40478246/remove-underline-in-inputtext-in-react-native
77
77
  borderWidth: 0,
78
78
  placeholder: this.props.placeholder,
79
- placeholderTextColor: this.props.placeholderTextColor,
79
+ // We set a fixed color for the placeholder to prevent it from being affected by the device's theme.
80
+ // Related issue on GitLab: 12074
81
+ placeholderTextColor: (0, theme_1.getTheme)().textColor3,
80
82
  secureTextEntry: this.props.secureTextEntry,
81
83
  multiline: this.props.multiline,
82
84
  editable: this.props.editable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.16.1-beta",
3
+ "version": "4.16.1-beta.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [