What to do about diffrent screen sizes

Viewed 28
2 Answers

You have to make sure a few things while developing a component or when you style it:

  • Try to avoid fixed width/height or placement. Let the content grow the height of the box.
  • Either use flex or percentage width.

In your example, what I can see is the icon is going over the boundary of the box. To give a simple example, if you want to show a text on the left and say image on the right, use styles like this:

<View style={{display: 'flex', flexDirection: 'row', justifyContent:'space-between'}}>
  <Text>Hi</Text>
  <Image/>
</View>
Related