secullum-react-native-ui 4.15.1-beta.3 → 4.15.1-beta.5

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.
@@ -12,7 +12,7 @@ export interface DropDownProperties {
12
12
  value: any | null;
13
13
  onChange: (value: any) => void;
14
14
  onPress?: () => void | boolean | Promise<void> | Promise<boolean>;
15
- emptyMessage?: string;
15
+ emptyMessage: string;
16
16
  disabled?: boolean;
17
17
  style?: StyleProp<ViewStyle>;
18
18
  disabledStyle?: StyleProp<ViewStyle>;
@@ -33,9 +33,6 @@ export interface DropDownState {
33
33
  searchText: string;
34
34
  }
35
35
  export declare class DropDown extends React.Component<DropDownProperties, DropDownState> {
36
- static defaultProps: {
37
- emptyMessage: string;
38
- };
39
36
  state: DropDownState;
40
37
  handleItemPress: (value: any) => void;
41
38
  filterItems: () => {
@@ -201,7 +201,10 @@ class DropDown extends React.Component {
201
201
  modalOverlay: {
202
202
  justifyContent: this.shouldDisplaySearchField()
203
203
  ? 'flex-start'
204
- : 'center'
204
+ : 'center',
205
+ paddingTop: this.shouldDisplaySearchField() && react_native_1.Platform.OS === 'ios'
206
+ ? 44
207
+ : 0
205
208
  },
206
209
  modalContainer: {
207
210
  maxHeight: '95%',
@@ -336,6 +339,3 @@ class DropDown extends React.Component {
336
339
  }
337
340
  }
338
341
  exports.DropDown = DropDown;
339
- DropDown.defaultProps = {
340
- emptyMessage: 'Não há registros cadastrados'
341
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.15.1-beta.3",
3
+ "version": "4.15.1-beta.5",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [