You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 19, 2022. It is now read-only.
Plain style objects will work as well, as long as you use the components from this package.
52
+
Usage of `StyleSheet.create` is not required. Plain style objects will work as well, as long as you use the React components from this package.
53
+
54
+
That's it!
52
55
53
56
### Demo
54
57

55
58
59
+
### Advanced features
60
+
61
+
#### Animate transitions
62
+
63
+
You can apply a [LayoutAnimation](https://facebook.github.io/react-native/docs/layoutanimation.html) to orientation changes. Valid animation values are `spring`, `linear` and `easeInEaseOut`.
64
+
```js
65
+
StyleSheet.configureLayoutAnimation('spring');
66
+
```
67
+
68
+
The default behaviour is no animation, but configuring one is recommended to avoid visual glitches when rearranging elements.
69
+
70
+
#### Make your custom components responsive
71
+
72
+
To add support for orientation-specific styles to your own components or other third-party components, wrap them in a higher-order component with `makeResponsive`:
0 commit comments