File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed 
packages/react-native-reanimated/src/common Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11'use strict' ; 
2- export  *  from  './colors' ; 
32export  *  from  './conversions' ; 
43export  *  from  './guards' ; 
54export  *  from  './parsers' ; 
Original file line number Diff line number Diff line change 22import  type  {  TextStyle ,  ViewStyle  }  from  'react-native' ; 
33
44import  {  logger  }  from  '../../../logger' ; 
5- import  {  opacifyColor  }  from  '../../../ utils' ; 
5+ import  {  opacifyColor  }  from  '../../utils' ; 
66import  {  createRuleBuilder  }  from  '../builderFactories' ; 
77import  {  processColor  }  from  '../processors' ; 
88import  type  {  ValueProcessor  }  from  '../types' ; 
Original file line number Diff line number Diff line change 11'use strict' ; 
22import  type  {  ColorValue  }  from  'react-native' ; 
33
4- import  {  processColor  }  from  '../style ' ; 
4+ import  {  processColorInitially  }  from  '../../../Colors ' ; 
55
66export  function  opacifyColor ( 
77  color : ColorValue , 
88  opacity : number 
99) : string  |  null  { 
1010  'worklet' ; 
11-   const  colorNumber  =  processColor ( color ) ; 
12-   if  ( colorNumber  ==  null )  { 
11+   const  colorNumber  =  processColorInitially ( color ) ; 
12+ 
13+   if  ( colorNumber  ===  undefined )  { 
1314    return  null ; 
1415  } 
16+   if  ( colorNumber  ===  null )  { 
17+     return  'transparent' ; 
18+   } 
1519
1620  const  a  =  ( colorNumber  >>  24 )  &  0xff ; 
1721  const  r  =  ( colorNumber  >>  16 )  &  0xff ; 
Original file line number Diff line number Diff line change 1+ 'use strict' ; 
2+ export  *  from  './colors' ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments