1
+ /* eslint-disable react-native/no-inline-styles */
1
2
import * as React from 'react' ;
2
3
import {
3
4
AccessibilityChangeEventName ,
@@ -20,6 +21,8 @@ type SharedContextValue = {
20
21
isInvertColorsEnabled : boolean ;
21
22
isReduceMotionEnabled : boolean ;
22
23
isReduceTransparencyEnabled : boolean ;
24
+ isHighTextContrastEnabled : boolean ;
25
+ isDarkerSystemColorsEnabled : boolean ;
23
26
reactNavigationScreenOptions : {
24
27
animationEnabled : boolean ;
25
28
animation : 'default' | 'fade' ;
@@ -56,6 +59,8 @@ const eventsMapping: AccessibilityInfoEvents = {
56
59
boldTextChanged : 'isBoldTextEnabled' ,
57
60
invertColorsChanged : 'isInvertColorsEnabled' ,
58
61
screenReaderChanged : 'isScreenReaderEnabled' ,
62
+ highTextContrastChanged : 'isHighTextContrastEnabled' ,
63
+ darkerSystemColorsChanged : 'isDarkerSystemColorsEnabled' ,
59
64
} ;
60
65
61
66
export const isDevContextValue = (
@@ -70,6 +75,8 @@ const DEFAULT_VALUES = {
70
75
isInvertColorsEnabled : false ,
71
76
isReduceMotionEnabled : false ,
72
77
isScreenReaderEnabled : false ,
78
+ isHighTextContrastEnabled : false ,
79
+ isDarkerSystemColorsEnabled : false ,
73
80
reactNavigationScreenOptions : {
74
81
animationEnabled : true ,
75
82
animation : 'default' ,
@@ -153,7 +160,7 @@ export const AMAProvider: React.FC<AMAProviderProps> = ({ children }) => {
153
160
< View style = { { flex : 1 } } >
154
161
< >
155
162
{ children }
156
- < AMAError issues = { issues } />
163
+ { AMAError && < AMAError issues = { issues } /> }
157
164
</ >
158
165
</ View >
159
166
</ AMAContext . Provider >
0 commit comments