File tree Expand file tree Collapse file tree
__mocks__/@react-navigation/native Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import type {Parameters} from 'storybook/internal/types';
66import EnvironmentProvider from '@components/EnvironmentContextProvider' ;
77import OnyxListItemProvider from '@components/OnyxListItemProvider' ;
88import { SearchContextProvider } from '@components/Search/SearchContext' ;
9+ import colors from '@styles/theme/colors' ;
910import ComposeProviders from '@src/components/ComposeProviders' ;
1011import HTMLEngineProvider from '@src/components/HTMLEngineProvider' ;
1112import { LocaleContextProvider } from '@src/components/LocaleContextProvider' ;
@@ -46,6 +47,16 @@ const parameters: Parameters = {
4647 color : / ( b a c k g r o u n d | c o l o r ) $ / i,
4748 } ,
4849 } ,
50+ backgrounds : {
51+ options : {
52+ dark : { name : 'Dark' , value : colors . productDark100 } ,
53+ light : { name : 'Light' , value : colors . productLight100 } ,
54+ } ,
55+ } ,
56+ } ;
57+
58+ const initialGlobals = {
59+ backgrounds : { value : 'dark' } ,
4960} ;
5061
51- export { decorators , parameters } ;
62+ export { decorators , parameters , initialGlobals } ;
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const useNavigation = isJestEnv
2323 getState : ( ) => ( {
2424 routes : [ ] ,
2525 } ) ,
26+ isFocused : ( ) => true ,
2627 addListener,
2728 } ) ;
2829
You can’t perform that action at this time.
0 commit comments