@fto-consult/expo-ui 1.2.4 → 1.2.6

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": "@fto-consult/expo-ui",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -61,7 +61,7 @@
61
61
  "@expo/html-elements": "^0.2.0",
62
62
  "@expo/metro-config": "^0.4.0",
63
63
  "@expo/webpack-config": "^0.17.2",
64
- "@fto-consult/common": "^1.4.3",
64
+ "@fto-consult/common": "^1.4.4",
65
65
  "@gorhom/portal": "^1.0.14",
66
66
  "@react-native-async-storage/async-storage": "~1.17.3",
67
67
  "@react-native-community/datetimepicker": "6.2.0",
@@ -1075,6 +1075,7 @@ class DropdownComponent extends AppComponent {
1075
1075
  {...listProps}
1076
1076
  ref = {this.listRef}
1077
1077
  responsive = {false}
1078
+ contentContainerStyle = {[{backgroundColor:theme.colors.surface},listProps.contentContainerStyle]}
1078
1079
  style = {[listProps.style]}
1079
1080
  prepareItems = {false}
1080
1081
  items = {renderingItems}
@@ -1,7 +1,7 @@
1
1
 
2
2
  import React from "$react";
3
3
  import { prepareItems as customPrepareItems,getBToTopRef } from "./utils";
4
- import {grid,StylePropTypes} from "$theme";
4
+ import theme,{grid,StylePropTypes} from "$theme";
5
5
  import PropTypes from "prop-types";
6
6
  import {defaultObj,defaultDecimal,defaultArray,defaultFunc} from "$utils";
7
7
  import {isMobileMedia} from "$cplatform/dimensions";
@@ -159,7 +159,7 @@ const CommonListComponent = React.forwardRef((props,ref)=>{
159
159
  const restP = numColumns > 1 && isFlatList ? {
160
160
  columnWrapperStyle : [styles.columnWrapperStyle,props.columnWrapperStyle]
161
161
  } : {};
162
- return <View {...containerProps} style={[styles.container,containerProps.style]}>
162
+ return <View {...containerProps} style={[{backgroundColor:theme.colors.surface},styles.container,containerProps.style]}>
163
163
  <Component
164
164
  onEndReachedThreshold={0}
165
165
  scrollEventThrottle={16}
@@ -1,6 +1,6 @@
1
1
  import React,{BaseComponent as AppComponent} from '$react';
2
- import View from "$ecomponents/View";
3
- import ScrollView from "$ecomponents/ScrollView";
2
+ import View from "$components/View";
3
+ import ScrollView from "$components/ScrollView";
4
4
  import {
5
5
  Platform,
6
6
  StyleSheet,
@@ -14,11 +14,11 @@ import {
14
14
  } from 'react-native';
15
15
  import PropTypes from "prop-types";
16
16
  import { withTheme,Surface,Portal} from 'react-native-paper';
17
- //import Surface from "$ecomponents/Surface";
17
+ //import Surface from "$components/Surface";
18
18
  import { NativeModules} from 'react-native';
19
19
  import {defaultDecimal,extendObj} from "$utils";
20
20
  import theme,{StylePropTypes} from "$theme";
21
- import APP from "$capp/instance";
21
+ import APP from "$app/instance";
22
22
  import MenuItem from "./Item";
23
23
 
24
24
  const RESIZE_PAGE = APP.EVENTS.RESIZE_PAGE;
@@ -361,6 +361,7 @@ const SimpleSelect = React.forwardRef((props,ref)=>{
361
361
  {...listProps}
362
362
  getItemLayout = {getItemLayout}
363
363
  ref = {listRef}
364
+ contentContainerStyle = {[{backgroundColor:theme.colors.surface},listProps.contentContainerStyle]}
364
365
  style = {[listProps.style]}
365
366
  prepareItems = {false}
366
367
  items = {renderingItems}