File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ const Base = styled(View)`
29
29
/* You'd write this in production, but does show-case what you can do */
30
30
const Orientation = styled ( Base ) `
31
31
@media (orientation: landscape) {
32
- &:not([@portrait]) {
32
+ &[@direction='landscape'] {
33
33
--border: var(--active);
34
34
}
35
35
}
36
36
37
37
@media (orientation: portrait) {
38
- &[@portrait] {
38
+ &[@direction=' portrait' ] {
39
39
--border: var(--active);
40
40
}
41
41
}
@@ -85,10 +85,10 @@ export default () => (
85
85
< View >
86
86
< ExampleHeader > Orientation</ ExampleHeader >
87
87
< ExampleRow >
88
- < Orientation >
88
+ < Orientation direction = "landscape" >
89
89
< ExampleText > Landscape</ ExampleText >
90
90
</ Orientation >
91
- < Orientation portrait >
91
+ < Orientation direction = " portrait" >
92
92
< ExampleText > Portrait</ ExampleText >
93
93
</ Orientation >
94
94
</ ExampleRow >
Original file line number Diff line number Diff line change 9
9
},
10
10
"dependencies" : {
11
11
"@react-native-community/slider" : " ^2.0.0" ,
12
- "cssta" : " ../cssta-new/cssta-v0. 9.0.tgz " ,
12
+ "cssta" : " 0. 9.0-alpha.2 " ,
13
13
"react" : " 16.8.6" ,
14
14
"react-native" : " 0.60.5"
15
15
},
Original file line number Diff line number Diff line change @@ -1949,7 +1949,7 @@ css-color-keywords@^1.0.0:
1949
1949
resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"
1950
1950
integrity sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU=
1951
1951
1952
- css-to-react-native@^2.3.1 :
1952
+ css-to-react-native@^2.3.2 :
1953
1953
version "2.3.2"
1954
1954
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.3.2.tgz#e75e2f8f7aa385b4c3611c52b074b70a002f2e7d"
1955
1955
integrity sha512-VOFaeZA053BqvvvqIA8c9n0+9vFppVBAHCp6JgFTtTMU3Mzi+XnelJ9XC9ul3BqFzZyQ5N+H0SnwsWT2Ebchxw==
@@ -1975,12 +1975,13 @@ cssstyle@^1.0.0:
1975
1975
dependencies :
1976
1976
cssom "0.3.x"
1977
1977
1978
- cssta@../cssta-new/cssta-v0.9.0.tgz :
1979
- version "0.9.0"
1980
- resolved "../cssta-new/cssta-v0.9.0.tgz#27862465967b924320d9e9447224f03685426628"
1978
+ cssta@0.9.0-alpha.2 :
1979
+ version "0.9.0-alpha.2"
1980
+ resolved "https://registry.yarnpkg.com/cssta/-/cssta-0.9.0-alpha.2.tgz#bdd6bb72a145c9c8ae669f45f1b7fd42112efca8"
1981
+ integrity sha512-rL+RL0tQnKViu/NAlwiUBlUm3Tg+IetOJvyqe24YX1joHObBHJipdH7goI98Ug4VvF/yjor08vu5DURMucWasQ==
1981
1982
dependencies :
1982
1983
css-color-function "^1.3.3"
1983
- css-to-react-native "^2.3.1 "
1984
+ css-to-react-native "^2.3.2 "
1984
1985
postcss "^7.0.17"
1985
1986
postcss-selector-parser "^6.0.2"
1986
1987
You can’t perform that action at this time.
0 commit comments