@fto-consult/expo-ui 5.2.0 → 5.3.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.
package/appConfig.txt CHANGED
@@ -20,4 +20,5 @@
20
20
  }
21
21
  getTableData : {function(tableName)=>table} retourne l'ojet table data,
22
22
  swrRefreshTimeout : {number} le délai d'inactivité auquel, une fois l'application active, les données de type listData sont rafraichies
23
+ handleHelpScreen : {boolean}, //if Help screen will be added on navigation's main drawer
23
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
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
  "@emotion/native": "^11.10.0",
62
62
  "@expo/html-elements": "^0.2.0",
63
63
  "@expo/vector-icons": "^13.0.0",
64
- "@fto-consult/common": "^2.21.4",
64
+ "@fto-consult/common": "^3.3.3",
65
65
  "@gorhom/portal": "^1.0.14",
66
66
  "@react-native-async-storage/async-storage": "^1.17.11",
67
67
  "@react-native-community/datetimepicker": "^6.7.3",
@@ -66,6 +66,7 @@ const AppBarComponent = React.forwardRef((props,ref)=> {
66
66
  }
67
67
  title = defaultVal(title,params.title,APP.getName());
68
68
  backActionProps = Object.assign({},backActionProps);
69
+ backActionProps.testID = defaultStr(backActionProps.testID,testID+"_BackAction");
69
70
 
70
71
  let BackActionComponent = backAction === false ? null : React.isComponent(backAction)? backAction : back ? Appbar.BackAction : Icon ;
71
72
  backActionProps.color = backActionProps.color && Colors.isValid(backActionProps.color)? backActionProps.color : anchorStyle.color;
@@ -90,6 +91,7 @@ const AppBarComponent = React.forwardRef((props,ref)=> {
90
91
  children = {backAction}
91
92
  />
92
93
  }
94
+ console.log(backAction," is back actions");
93
95
  const [context] = React.useState({});
94
96
  actions = typeof actions =='function'? actions(getCallAgs()) : actions;
95
97
  const dimensions = Dimensions.get("window");
@@ -62,7 +62,7 @@ export default function ScreenWrapperNavComponent(_props){
62
62
  }
63
63
  },[]);
64
64
  setScreenOptions(options);
65
- const allowDrawer = typeof options.allowDrawer ==='boolean'? options.allowDrawer : typeof Screen.allowDrawer =='boolean'? Screen.allowDrawer : Screen.isModalScreen == true ? false : true;
65
+ const allowDrawer = typeof options.allowDrawer ==='boolean'? options.allowDrawer : typeof options.withDrawer =='boolean'? options.withDrawer : typeof Screen.allowDrawer =='boolean'? Screen.allowDrawer : Screen.isModalScreen == true ? false : true;
66
66
  return <Screen
67
67
  {...rest}
68
68
  key = {sanitizedName}