Skip to content

Commit

Permalink
Adds a warning about flex: 1 with @emotion/native (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slapbox authored May 4, 2020
1 parent d241776 commit 52530f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ class App extends React.Component {
}
```

## Gotchas

- Note that the `flex` property works like CSS shorthand, and not the legacy `flex` property in React Native. Setting `flex: 1` sets `flexShrink` to `1` in addition to setting `flexGrow` to `1` and `flexBasis` to `0`.

## Usage with `react-360`

`@emotion/native` can also be used with `react-360` for styling VR applications. Check out [this](https://facebook.github.io/react-360/docs/setup.html) guide for setting up a `react-360` project.
Expand Down

0 comments on commit 52530f0

Please sign in to comment.