File tree Expand file tree Collapse file tree 2 files changed +11
-22
lines changed
accordion/__tests__/__snapshots__ Expand file tree Collapse file tree 2 files changed +11
-22
lines changed Original file line number Diff line number Diff line change @@ -107,12 +107,7 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
107107 <View
108108 collapsable = { false }
109109 pointerEvents = " auto"
110- style = {
111- Object {
112- " height" : 0 ,
113- " overflow" : " hidden" ,
114- }
115- }
110+ style = { Object {}}
116111 >
117112 <View
118113 collapsable = { false }
@@ -557,12 +552,7 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = `
557552 <View
558553 collapsable = { false }
559554 pointerEvents = " auto"
560- style = {
561- Object {
562- " height" : 0 ,
563- " overflow" : " hidden" ,
564- }
565- }
555+ style = { Object {}}
566556 >
567557 <View
568558 collapsable = { false }
Original file line number Diff line number Diff line change @@ -10,15 +10,14 @@ export interface AccessibilityContextProps {
1010 children ?: React . ReactNode
1111}
1212
13- export const AccessibilityContextProvider : React . FC <
14- AccessibilityContextProps
15- > = ( { children, isRTL } ) => {
16- const originValue = React . useContext ( AccessibilityContext )
17- return (
18- < AccessibilityContext . Provider value = { isRTL ?? originValue } >
19- { children }
20- </ AccessibilityContext . Provider >
21- )
22- }
13+ export const AccessibilityContextProvider : React . FC < AccessibilityContextProps > =
14+ ( { children, isRTL } ) => {
15+ const originValue = React . useContext ( AccessibilityContext )
16+ return (
17+ < AccessibilityContext . Provider value = { isRTL ?? originValue } >
18+ { children }
19+ </ AccessibilityContext . Provider >
20+ )
21+ }
2322
2423export default AccessibilityContext
You can’t perform that action at this time.
0 commit comments