@@ -6,52 +6,52 @@ import {
66 addParameters ,
77 addArgsEnhancer ,
88 clearDecorators ,
9- } from " @storybook/react-native" ;
9+ } from ' @storybook/react-native'
1010
1111global . STORIES = [
1212 {
13- titlePrefix : "" ,
14- directory : " ./src" ,
15- files : " **/*.stories.?(ts|tsx|js|jsx)" ,
13+ titlePrefix : '' ,
14+ directory : ' ./src' ,
15+ files : ' **/*.stories.?(ts|tsx|js|jsx)' ,
1616 importPathMatcher :
17- " ^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(?:ts|tsx|js|jsx)?)$" ,
17+ ' ^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(?:ts|tsx|js|jsx)?)$' ,
1818 } ,
19- ] ;
19+ ]
2020
21- import " @storybook/addon-ondevice-notes/register" ;
22- import " @storybook/addon-ondevice-controls/register" ;
23- import " @storybook/addon-ondevice-backgrounds/register" ;
24- import " @storybook/addon-ondevice-actions/register" ;
21+ import ' @storybook/addon-ondevice-notes/register'
22+ import ' @storybook/addon-ondevice-controls/register'
23+ import ' @storybook/addon-ondevice-backgrounds/register'
24+ import ' @storybook/addon-ondevice-actions/register'
2525
26- import { argsEnhancers } from " @storybook/addon-actions/dist/modern/preset/addArgs" ;
26+ import { argsEnhancers } from ' @storybook/addon-actions/dist/modern/preset/addArgs'
2727
28- import { decorators , parameters } from " ./preview" ;
28+ import { decorators , parameters } from ' ./preview'
2929
3030if ( decorators ) {
3131 if ( __DEV__ ) {
3232 // stops the warning from showing on every HMR
33- require ( " react-native" ) . LogBox . ignoreLogs ( [
34- " `clearDecorators` is deprecated and will be removed in Storybook 7.0" ,
35- ] ) ;
33+ require ( ' react-native' ) . LogBox . ignoreLogs ( [
34+ ' `clearDecorators` is deprecated and will be removed in Storybook 7.0' ,
35+ ] )
3636 }
3737 // workaround for global decorators getting infinitely applied on HMR, see https://github.com/storybookjs/react-native/issues/185
38- clearDecorators ( ) ;
39- decorators . forEach ( ( decorator ) => addDecorator ( decorator ) ) ;
38+ clearDecorators ( )
39+ decorators . forEach ( decorator => addDecorator ( decorator ) )
4040}
4141
4242if ( parameters ) {
43- addParameters ( parameters ) ;
43+ addParameters ( parameters )
4444}
4545
4646try {
47- argsEnhancers . forEach ( ( enhancer ) => addArgsEnhancer ( enhancer ) ) ;
47+ argsEnhancers . forEach ( enhancer => addArgsEnhancer ( enhancer ) )
4848} catch { }
4949
5050const getStories = ( ) => {
5151 return {
52- " ./src/stories/Button.stories.tsx" : require ( " ../src/stories/Button.stories.tsx" ) ,
53- " ./src/stories/Switch.stories.tsx" : require ( " ../src/stories/Switch.stories.tsx" ) ,
54- } ;
55- } ;
52+ ' ./src/stories/Button.stories.tsx' : require ( ' ../src/stories/Button.stories.tsx' ) ,
53+ ' ./src/stories/Switch.stories.tsx' : require ( ' ../src/stories/Switch.stories.tsx' ) ,
54+ }
55+ }
5656
57- configure ( getStories , module , false ) ;
57+ configure ( getStories , module , false )
0 commit comments