1+ /* eslint-disable react-native/no-inline-styles */
12import * as React from 'react' ;
23import {
34 AccessibilityChangeEventName ,
@@ -20,6 +21,8 @@ type SharedContextValue = {
2021 isInvertColorsEnabled : boolean ;
2122 isReduceMotionEnabled : boolean ;
2223 isReduceTransparencyEnabled : boolean ;
24+ isHighTextContrastEnabled : boolean ;
25+ isDarkerSystemColorsEnabled : boolean ;
2326 reactNavigationScreenOptions : {
2427 animationEnabled : boolean ;
2528 animation : 'default' | 'fade' ;
@@ -56,6 +59,8 @@ const eventsMapping: AccessibilityInfoEvents = {
5659 boldTextChanged : 'isBoldTextEnabled' ,
5760 invertColorsChanged : 'isInvertColorsEnabled' ,
5861 screenReaderChanged : 'isScreenReaderEnabled' ,
62+ highTextContrastChanged : 'isHighTextContrastEnabled' ,
63+ darkerSystemColorsChanged : 'isDarkerSystemColorsEnabled' ,
5964} ;
6065
6166export const isDevContextValue = (
@@ -70,6 +75,8 @@ const DEFAULT_VALUES = {
7075 isInvertColorsEnabled : false ,
7176 isReduceMotionEnabled : false ,
7277 isScreenReaderEnabled : false ,
78+ isHighTextContrastEnabled : false ,
79+ isDarkerSystemColorsEnabled : false ,
7380 reactNavigationScreenOptions : {
7481 animationEnabled : true ,
7582 animation : 'default' ,
@@ -153,7 +160,7 @@ export const AMAProvider: React.FC<AMAProviderProps> = ({ children }) => {
153160 < View style = { { flex : 1 } } >
154161 < >
155162 { children }
156- < AMAError issues = { issues } />
163+ { AMAError && < AMAError issues = { issues } /> }
157164 </ >
158165 </ View >
159166 </ AMAContext . Provider >
0 commit comments