How to create 3x3 grid menu in react native without 3rd party lib?

前端 未结 1 604
误落风尘
误落风尘 2021-02-03 15:06

I want to create grid center menu in react native, I just read the doc and looks good to start, but I have a problem to creating line for each grid menu

I\'ve created 3x

1条回答
  •  梦如初夏
    2021-02-03 15:50

    I change the last color to be more visible and made the line "grey" (you can use lightgrey or any custom color you want) so that you can change it easily.

    import {Dimensions, View} from 'react-native'    
    const DeviceWidth = Dimensions.get('window').width
    

    Here is the code inside the render function:

      
        
          
            
            
            
          
          
            
            
            
          
          
            
            
            
              
        
      
    

    0 讨论(0)
提交回复
热议问题