React Native Fun

Little Atoms of React Native. Tips, Tricks, and How Tos.

Making an expanding TextInput

When you are accepting multiline input from a user, you sometimes want to TextInput to grow as the user enters more text. This allows it to only take up a small amount of space when no text has been entered, but then to

Making a square component (or any other fixed ratio)

React Native has built in support for styling components with a fixed ratio. Using this is especially useful if you want to have a component such as an image in a grid or a list which is always the same shape. The aspect