@fto-consult/expo-ui 8.25.16 → 8.25.17

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": "8.25.16",
3
+ "version": "8.25.17",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -27,6 +27,7 @@ const TabItemsComponent = ({
27
27
  elevation = 7,
28
28
  fixed = false,
29
29
  testID,
30
+ onTabItemClick,
30
31
  scrollViewProps,
31
32
  ...rest
32
33
  }) => {
@@ -102,7 +103,10 @@ const TabItemsComponent = ({
102
103
  return React.cloneElement(
103
104
  child,
104
105
  {
105
- onPress: () => {
106
+ onPress: (e) => {
107
+ if(typeof onTabItemClick =="function"){
108
+ onTabItemClick({...React.getOnPressArgs(e),index,tabIndex:index,event:e});
109
+ }
106
110
  onChange(index);
107
111
  },
108
112
  onLayout: (event) => {
@@ -229,6 +233,7 @@ TabItemsComponent.displayName = 'TabComponent.Items';
229
233
  TabItemsComponent.propTypes = {
230
234
  /** Child position index activeIndex. */
231
235
  activeIndex : PropTypes.number,
236
+ onTabItemClick : PropTypes.func,
232
237
 
233
238
  /** Makes Tab Scrolling */
234
239
  scrollable : PropTypes.bool,
@@ -35,12 +35,12 @@ export const getSessionActiveIndex = (props)=>{
35
35
  }
36
36
 
37
37
  const TabComponent = React.forwardRef((props,ref)=>{
38
- let {activeIndex:customActiveIndex,tabContentProps,withScrollView,testID,sessionName,children,onChange,tabItemProps,tabItemsProps,...rest} = props;
38
+ let {activeIndex:customActiveIndex,tabContentProps,withScrollView,testID,sessionName,children,onTabItemClick,onChange,tabItemProps,tabItemsProps,...rest} = props;
39
39
  let activeIndex = getSessionActiveIndex(props);
40
40
  rest = defaultObj(rest);
41
41
  tabItemsProps = defaultObj(tabItemsProps);
42
42
  tabItemProps = defaultObj(tabItemProps);
43
- tabContentProps = defaultObj(tabContentProps);
43
+ tabContentProps = defaultObj(tabContentProps);
44
44
 
45
45
  const [index, setIndex] = React.useState(getSessionActiveIndex(props));
46
46
  const setActiveIndex = (nIndex)=>{
@@ -80,7 +80,7 @@ const TabComponent = React.forwardRef((props,ref)=>{
80
80
  return {tabs,contents,childrenProps}
81
81
  },[children]);
82
82
  return <View {...rest} testID={testID} style={[styles.container,tabItemsProps.style,rest.style]}>
83
- <TabItems testID={testID+"_TabItems"} {...tabItemsProps} activeIndex={index} style={[styles.tab,rest.style]} onChange={setActiveIndex}>
83
+ <TabItems testID={testID+"_TabItems"} onTabItemClick={onTabItemClick} {...tabItemsProps} activeIndex={index} style={[styles.tab,rest.style]} onChange={setActiveIndex}>
84
84
  {tabs}
85
85
  </TabItems>
86
86
  <TabContent testId={testID+"_TabContent"} withScrollView={withScrollView} {...tabContentProps} childrenProps={childrenProps} activeIndex={index} onChange={setActiveIndex} style={[styles.container,tabContentProps.style]}>
@@ -93,6 +93,7 @@ const TabComponent = React.forwardRef((props,ref)=>{
93
93
  TabComponent.propTypes = {
94
94
  activeIndex : PropTypes.number,
95
95
  onChange : PropTypes.func,
96
+ onTabItemClick : PropTypes.func,///appelée lorsqu'on clic sur un tab
96
97
  tabItemsProps : PropTypes.object,//les props du tab
97
98
  tabItemProps : PropTypes.object,//les props des items du tab
98
99
  tabContentProps : PropTypes.object, ///les props de la tabContent
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  "@fto-consult/expo-ui": {
3
- "version": "8.25.14",
3
+ "version": "8.25.16",
4
4
  "url": "https://github.com/borispipo/expo-ui#readme",
5
5
  "license": "ISC"
6
6
  },
@@ -39,6 +39,11 @@ module.exports = {
39
39
  "url": "https://github.com/pchmn/expo-material3-theme#readme",
40
40
  "license": "MIT"
41
41
  },
42
+ "@react-native-async-storage/async-storage": {
43
+ "version": "1.21.0",
44
+ "url": "https://github.com/react-native-async-storage/async-storage#readme",
45
+ "license": "MIT"
46
+ },
42
47
  "@react-native-community/netinfo": {
43
48
  "version": "11.1.0",
44
49
  "url": "https://github.com/react-native-netinfo/react-native-netinfo#readme",
@@ -134,19 +139,14 @@ module.exports = {
134
139
  "url": "https://docs.expo.dev/versions/latest/sdk/webbrowser/",
135
140
  "license": "MIT"
136
141
  },
137
- "react-native": {
138
- "version": "0.73.2",
139
- "url": "https://reactnative.dev/",
142
+ "react": {
143
+ "version": "18.2.0",
144
+ "url": "https://reactjs.org/",
140
145
  "license": "MIT"
141
146
  },
142
- "react-native-big-list": {
143
- "version": "1.6.1",
144
- "url": "https://marcocesarato.github.io/react-native-big-list-docs/",
145
- "license": "GPL-3.0-or-later"
146
- },
147
- "react-native-blob-util": {
148
- "version": "0.18.6",
149
- "url": "https://github.com/RonRadtke/react-native-blob-util",
147
+ "react-native": {
148
+ "version": "0.73.4",
149
+ "url": "https://reactnative.dev/",
150
150
  "license": "MIT"
151
151
  },
152
152
  "react-native-gesture-handler": {
@@ -154,6 +154,10 @@ module.exports = {
154
154
  "url": "https://github.com/software-mansion/react-native-gesture-handler#readme",
155
155
  "license": "MIT"
156
156
  },
157
+ "react-native-get-random-values": {
158
+ "version": "1.8.0",
159
+ "license": "MIT"
160
+ },
157
161
  "react-native-reanimated": {
158
162
  "version": "3.6.2",
159
163
  "url": "https://github.com/software-mansion/react-native-reanimated#readme",
@@ -183,5 +187,10 @@ module.exports = {
183
187
  "version": "13.6.4",
184
188
  "url": "https://github.com/react-native-webview/react-native-webview#readme",
185
189
  "license": "MIT"
190
+ },
191
+ "socket.io-client": {
192
+ "version": "4.7.4",
193
+ "url": "https://github.com/socketio/socket.io-client.git",
194
+ "license": "MIT"
186
195
  }
187
196
  };