@fto-consult/expo-ui 7.24.0 → 7.24.1
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
@@ -22,12 +22,14 @@ const ErrorMessage = React.forwardRef(function(props,ref){
|
|
22
22
|
}
|
23
23
|
if(!error || !info || !error.toString) return null;
|
24
24
|
const pointerEvents = 'auto';
|
25
|
+
const backgroundColor = theme.colors.backgroundColor;
|
26
|
+
const color = theme.colors.onSurface;
|
25
27
|
return <Portal>
|
26
28
|
<Screen {...props} modal={false}>
|
27
|
-
<View ref={ref} testID={`${testID}_ErrorMessageContainer`} style={[{pointerEvents},styles.container]}>
|
29
|
+
<View ref={ref} testID={`${testID}_ErrorMessageContainer`} style={[{pointerEvents},styles.container,{backgroundColor}]}>
|
28
30
|
<View style={[styles.content,{pointerEvents}]} testID={`${testID}_ErrorMessageContentContainer`}>
|
29
|
-
<Label style={styles.title}>Oops!</Label>
|
30
|
-
<Label style={styles.subtitle}>{'Une erreur est survenue'}</Label>
|
31
|
+
<Label style={[styles.title,{color}]}>Oops!</Label>
|
32
|
+
<Label style={[styles.subtitle,{color}]}>{'Une erreur est survenue'}</Label>
|
31
33
|
<Label style={styles.error}>{error.toString()}</Label>
|
32
34
|
<Button mode="contained" iconProps={{marginVertical:0,pointerEvents,paddingVertical:0}} icon='home-variant' style={{backgroundColor:theme.colors.primary,marginHorizontal:10}} labelStyle={{color:theme.colors.primaryLabel}} onPress={goToHome}>
|
33
35
|
Retour à l'accueil
|
@@ -35,7 +37,7 @@ const ErrorMessage = React.forwardRef(function(props,ref){
|
|
35
37
|
<Expandable title="Plus de détail sur l'erreur">
|
36
38
|
<View>
|
37
39
|
<ScrollView style={{flex:1}} contentContainerStyle={{flex:1,flexGrow:1,paddingBottom:30}} testID='RN_ErrorBoundary_ScrollView'>
|
38
|
-
<Paragraph testID='RN_ErrorBoundary_StackDetails' style={[styles.componentStack,{color
|
40
|
+
<Paragraph testID='RN_ErrorBoundary_StackDetails' style={[styles.componentStack,{color}]}>
|
39
41
|
{info.componentStack}
|
40
42
|
</Paragraph>
|
41
43
|
</ScrollView>
|
@@ -65,7 +67,6 @@ ErrorMessage.propTypes = {
|
|
65
67
|
|
66
68
|
const styles = StyleSheet.create({
|
67
69
|
container: {
|
68
|
-
backgroundColor: '#fafafa',
|
69
70
|
flex: 1,
|
70
71
|
justifyContent: 'center',
|
71
72
|
...StyleSheet.absoluteFillObject,
|