How to center Text? Within Box #838
-
| Is there a way to calculate the size of the text to be rendered in order to successfully center text in a Box element? Either with TextBlob , Text of another way? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            wcandillon
          
      
      
        Aug 22, 2022 
      
    
    Replies: 1 comment 1 reply
-
| There is a getTextWidth function that might help here. You can see an example of it at | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        psquizzle
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
There is a getTextWidth function that might help here. You can see an example of it at
react-native-skia/example/src/Examples/Neumorphism/Dashboard/components/Title.tsx
Line 17 in e95e21b