File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -101,3 +101,30 @@ export default function Hello() {
101101  return  < ActivityIndicatiorIOS/ > 
102102}
103103``` 
104+ 
105+ ## Rule Options  
106+ 
107+ ``` js 
108+ ... 
109+ " react-native/split-platform-components" :  [ < enabled> , {
110+   androidPathRegex:  < string> ,
111+   iosPathRegex:  < string> 
112+ }]
113+ ... 
114+ ``` 
115+ 
116+ ### ` androidPathRegex `  
117+ 
118+ A RegExp pattern to use for Android platform components. You can include other custom filenames like so:
119+ 
120+ ``` js 
121+ ' react-native/split-platform-components' :  [2 , {androidPathRegex:  ' \\ .android.(js|jsx|ts|tsx)$'  }]
122+ ``` 
123+ 
124+ ### ` iosPathRegex `  
125+ 
126+ A RegExp pattern to use for iOS platform components. You can include other custom filenames like so:
127+ 
128+ ``` js 
129+ ' react-native/split-platform-components' :  [2 , {iosPathRegex:  ' \\ .ios.(js|jsx|ts|tsx)$'  }]
130+ ``` 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments