File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 11import  {  AppRegistry  }  from  'react-native' ; 
2- import   App   from   './src/App' ; 
2+ 
33import  {  name  as  appName  }  from  './app.json' ; 
4+ import  StorybookUIRoot  from  './stories/storybook' ; 
45
5- AppRegistry . registerComponent ( appName ,  ( )  =>  App ) ; 
6+ AppRegistry . registerComponent ( appName ,  ( )  =>  StorybookUIRoot ) ; 
Original file line number Diff line number Diff line change 1+ import  {  AppRegistry  }  from  'react-native' ; 
2+ import  {  getStorybookUI ,  configure  }  from  '@storybook/react-native' ; 
3+ 
4+ import  {  name  as  appName  }  from  './../app.json' ; 
5+ 
6+ // import stories 
7+ configure ( ( )  =>  { 
8+   require ( './components/Avatar/avatar.icons.stories' ) ; 
9+ } ,  module ) ; 
10+ 
11+ // Refer to https://github.com/storybooks/storybook/tree/master/app/react-native#start-command-parameters 
12+ // To find allowed options for getStorybookUI 
13+ const  StorybookUIRoot  =  getStorybookUI ( { } ) ; 
14+ 
15+ // If you are using React Native vanilla and after installation you don't see your app name here, write it manually. 
16+ // If you use Expo you can safely remove this line. 
17+ AppRegistry . registerComponent ( appName ,  ( )  =>  StorybookUIRoot ) ; 
18+ 
19+ export  default  StorybookUIRoot ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments