@@ -108,7 +108,7 @@ export default {
108
108
}
109
109
110
110
// app entry
111
- import theme from ' .theme' ;
111
+ import theme from ' ./ theme' ;
112
112
EStyleSheet .build (theme);
113
113
```
114
114
@@ -133,6 +133,7 @@ const styles = EStyleSheet.create({
133
133
134
134
### Local variables
135
135
Local variables can be defined directly in sylesheet and have priority over global variables.
136
+ To define local variable just start it with ` $ ` :
136
137
``` js
137
138
const styles = EStyleSheet .create ({
138
139
$textColor: ' #0275d8' ,
@@ -181,9 +182,8 @@ EStyleSheet.build({
181
182
\[ [ top] ( # ) \]
182
183
183
184
### Percents
184
- Percents are useful for ** single-orientation apps** because calculation is performed on app start only.
185
- You can apply it to top-level components as percent values are calculated from ** screen** width/height
186
- (not from parent component).
185
+ Percent values are useful for ** single-orientation apps** because calculation is performed on app start only.
186
+ They are calculated relative to ** screen width/height** (not parent component!).
187
187
``` js
188
188
const styles = EStyleSheet .create ({
189
189
column: {
@@ -232,7 +232,6 @@ render() {
232
232
Media queries are supported in standard format (thanks for idea to [ @grabbou ] ( https://github.com/grabbou ) ,
233
233
[ #5 ] ( https://github.com/vitalets/react-native-extended-stylesheet/issues/5 ) ).
234
234
They allows to have different styles for different screens, platform, orienation etc.
235
- You can define media queries on sheet level or style level.
236
235
237
236
Supported values are:
238
237
@@ -242,7 +241,7 @@ Supported values are:
242
241
* ` orientation ` (` landscape|portrait ` )
243
242
* ` aspect-ratio `
244
243
245
- Example :
244
+ You can define media queries on sheet level or style level :
246
245
``` js
247
246
const styles = EStyleSheet .create ({
248
247
column: {
0 commit comments