Skip to content

Commit 652ce78

Browse files
committed
➕ styled components
1 parent 7b5e237 commit 652ce78

File tree

2 files changed

+134
-7
lines changed

2 files changed

+134
-7
lines changed

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
2222
"react-native": "0.64.3",
2323
"react-native-safe-area-context": "3.3.2",
2424
"react-native-screens": "~3.10.1",
25-
"react-native-web": "0.17.1"
25+
"react-native-web": "0.17.1",
26+
"styled-components": "^5.3.3"
2627
},
2728
"devDependencies": {
2829
"@babel/core": "^7.12.9",
2930
"@commitlint/cli": "^16.2.1",
3031
"@commitlint/core": "^16.2.1",
3132
"@types/react": "~17.0.21",
3233
"@types/react-native": "~0.64.12",
34+
"@types/styled-components-react-native": "^5.1.3",
3335
"@typescript-eslint/eslint-plugin": "^5.12.0",
3436
"@typescript-eslint/parser": "^5.12.0",
3537
"commitizen": "^4.2.4",
@@ -55,5 +57,8 @@
5557
"commitizen": {
5658
"path": "./node_modules/cz-gitmoji"
5759
}
60+
},
61+
"resolutions": {
62+
"styled-components": "^5"
5863
}
5964
}

yarn.lock

+128-6
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
jsesc "^2.5.1"
7575
source-map "^0.5.0"
7676

77-
"@babel/helper-annotate-as-pure@^7.16.7":
77+
"@babel/helper-annotate-as-pure@^7.16.0", "@babel/helper-annotate-as-pure@^7.16.7":
7878
version "7.16.7"
7979
resolved "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz"
8080
integrity sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==
@@ -178,7 +178,7 @@
178178
dependencies:
179179
"@babel/types" "^7.16.7"
180180

181-
"@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.16.7":
181+
"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.16.0", "@babel/helper-module-imports@^7.16.7":
182182
version "7.16.7"
183183
resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz"
184184
integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==
@@ -1045,7 +1045,7 @@
10451045
"@babel/parser" "^7.16.7"
10461046
"@babel/types" "^7.16.7"
10471047

1048-
"@babel/traverse@^7.0.0", "@babel/traverse@^7.13.0", "@babel/traverse@^7.16.7", "@babel/traverse@^7.16.8", "@babel/traverse@^7.17.0", "@babel/traverse@^7.17.3":
1048+
"@babel/traverse@^7.0.0", "@babel/traverse@^7.13.0", "@babel/traverse@^7.16.7", "@babel/traverse@^7.16.8", "@babel/traverse@^7.17.0", "@babel/traverse@^7.17.3", "@babel/traverse@^7.4.5":
10491049
version "7.17.3"
10501050
resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz"
10511051
integrity sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==
@@ -1244,6 +1244,28 @@
12441244
dependencies:
12451245
"@cspotcode/source-map-consumer" "0.8.0"
12461246

1247+
"@emotion/is-prop-valid@^0.8.8":
1248+
version "0.8.8"
1249+
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz#db28b1c4368a259b60a97311d6a952d4fd01ac1a"
1250+
integrity sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==
1251+
dependencies:
1252+
"@emotion/memoize" "0.7.4"
1253+
1254+
"@emotion/[email protected]":
1255+
version "0.7.4"
1256+
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.4.tgz#19bf0f5af19149111c40d98bb0cf82119f5d9eeb"
1257+
integrity sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==
1258+
1259+
"@emotion/stylis@^0.8.4":
1260+
version "0.8.5"
1261+
resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.8.5.tgz#deacb389bd6ee77d1e7fcaccce9e16c5c7e78e04"
1262+
integrity sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==
1263+
1264+
"@emotion/unitless@^0.7.4":
1265+
version "0.7.5"
1266+
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed"
1267+
integrity sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==
1268+
12471269
"@eslint/eslintrc@^1.1.0":
12481270
version "1.1.0"
12491271
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.1.0.tgz#583d12dbec5d4f22f333f9669f7d0b7c7815b4d3"
@@ -1732,6 +1754,14 @@
17321754
dependencies:
17331755
"@types/node" "*"
17341756

1757+
"@types/hoist-non-react-statics@*":
1758+
version "3.3.1"
1759+
resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
1760+
integrity sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==
1761+
dependencies:
1762+
"@types/react" "*"
1763+
hoist-non-react-statics "^3.3.0"
1764+
17351765
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
17361766
version "2.0.4"
17371767
resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz"
@@ -1786,6 +1816,13 @@
17861816
resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.4.tgz"
17871817
integrity sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ==
17881818

1819+
"@types/react-native@^0.65":
1820+
version "0.65.20"
1821+
resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.65.20.tgz#14e7e2a70ef57393150d26df10c86497ce2949ea"
1822+
integrity sha512-LIgRFtJOYKRwu792iMvXQxWRCYVloglO+r10V+0O2wsg2LTWimpZLemcxMPMOu3ZS7/tcG6bzPnUKrIVEmsMZQ==
1823+
dependencies:
1824+
"@types/react" "*"
1825+
17891826
"@types/react-native@~0.64.12":
17901827
version "0.64.23"
17911828
resolved "https://registry.npmjs.org/@types/react-native/-/react-native-0.64.23.tgz"
@@ -1807,6 +1844,24 @@
18071844
resolved "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz"
18081845
integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==
18091846

1847+
"@types/styled-components-react-native@^5.1.3":
1848+
version "5.1.3"
1849+
resolved "https://registry.yarnpkg.com/@types/styled-components-react-native/-/styled-components-react-native-5.1.3.tgz#a340208914a2bbb73f05abd6c8b8accffa9c7412"
1850+
integrity sha512-IXaogtizUkHJNzSxihG4KK3Z+jaHFp4XyHYIh/I7SUHCc1DsBxToQpE33JITPkgP6DzfgeDn9JkGBGhDIy+GIQ==
1851+
dependencies:
1852+
"@types/react" "*"
1853+
"@types/react-native" "^0.65"
1854+
"@types/styled-components" "*"
1855+
1856+
"@types/styled-components@*":
1857+
version "5.1.22"
1858+
resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-5.1.22.tgz#ee6206582d3da11fa2f9951e858aefebee37ff20"
1859+
integrity sha512-zQzf/0aGtgFDjB942f8IaKA6UilFziDza9wXkAX5mpiSWA/FBZBU6yUavvczulTvoR6759h6CH8HuuIcJDBgZA==
1860+
dependencies:
1861+
"@types/hoist-non-react-statics" "*"
1862+
"@types/react" "*"
1863+
csstype "^3.0.2"
1864+
18101865
"@types/yargs-parser@*":
18111866
version "20.2.1"
18121867
resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.1.tgz"
@@ -2265,6 +2320,21 @@ babel-plugin-react-native-web@~0.17.1:
22652320
resolved "https://registry.npmjs.org/babel-plugin-react-native-web/-/babel-plugin-react-native-web-0.17.5.tgz"
22662321
integrity sha512-UWl0E9FGYVr5Gj7lbVc4DFy8pTgc6wIXBa0rDvPGxx3OmcKwcdvCfDn9mLuh7JesYfh+wLjp01fwPplMus7IPw==
22672322

2323+
"babel-plugin-styled-components@>= 1.12.0":
2324+
version "2.0.2"
2325+
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-2.0.2.tgz#0fac11402dc9db73698b55847ab1dc73f5197c54"
2326+
integrity sha512-7eG5NE8rChnNTDxa6LQfynwgHTVOYYaHJbUYSlOhk8QBXIQiMBKq4gyfHBBKPrxUcVBXVJL61ihduCpCQbuNbw==
2327+
dependencies:
2328+
"@babel/helper-annotate-as-pure" "^7.16.0"
2329+
"@babel/helper-module-imports" "^7.16.0"
2330+
babel-plugin-syntax-jsx "^6.18.0"
2331+
lodash "^4.17.11"
2332+
2333+
babel-plugin-syntax-jsx@^6.18.0:
2334+
version "6.18.0"
2335+
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
2336+
integrity sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=
2337+
22682338
babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0:
22692339
version "7.0.0-beta.0"
22702340
resolved "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz"
@@ -2510,6 +2580,11 @@ camelcase@^6.0.0:
25102580
resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz"
25112581
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
25122582

2583+
camelize@^1.0.0:
2584+
version "1.0.0"
2585+
resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b"
2586+
integrity sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=
2587+
25132588
caniuse-lite@^1.0.30001286:
25142589
version "1.0.30001312"
25152590
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001312.tgz"
@@ -2953,6 +3028,11 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3:
29533028
shebang-command "^2.0.0"
29543029
which "^2.0.1"
29553030

3031+
css-color-keywords@^1.0.0:
3032+
version "1.0.0"
3033+
resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"
3034+
integrity sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU=
3035+
29563036
css-in-js-utils@^2.0.0:
29573037
version "2.0.1"
29583038
resolved "https://registry.npmjs.org/css-in-js-utils/-/css-in-js-utils-2.0.1.tgz"
@@ -2961,6 +3041,15 @@ css-in-js-utils@^2.0.0:
29613041
hyphenate-style-name "^1.0.2"
29623042
isobject "^3.0.1"
29633043

3044+
css-to-react-native@^3.0.0:
3045+
version "3.0.0"
3046+
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-3.0.0.tgz#62dbe678072a824a689bcfee011fc96e02a7d756"
3047+
integrity sha512-Ro1yETZA813eoyUp2GDBhG2j+YggidUmzO1/v9eYBKR2EHVEniE2MI/NqpTQ954BMpTPZFsGNPm46qFB9dpaPQ==
3048+
dependencies:
3049+
camelize "^1.0.0"
3050+
css-color-keywords "^1.0.0"
3051+
postcss-value-parser "^4.0.2"
3052+
29643053
csstype@^3.0.2:
29653054
version "3.0.10"
29663055
resolved "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz"
@@ -4324,6 +4413,13 @@ hermes-profile-transformer@^0.0.6:
43244413
dependencies:
43254414
source-map "^0.7.3"
43264415

4416+
hoist-non-react-statics@^3.0.0, hoist-non-react-statics@^3.3.0:
4417+
version "3.3.2"
4418+
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
4419+
integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
4420+
dependencies:
4421+
react-is "^16.7.0"
4422+
43274423
homedir-polyfill@^1.0.1:
43284424
version "1.0.3"
43294425
resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8"
@@ -5202,7 +5298,7 @@ lodash.throttle@^4.1.1:
52025298
resolved "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz"
52035299
integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=
52045300

5205-
lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20:
5301+
lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20:
52065302
version "4.17.21"
52075303
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
52085304
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
@@ -6250,6 +6346,11 @@ posix-character-classes@^0.1.0:
62506346
resolved "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz"
62516347
integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=
62526348

6349+
postcss-value-parser@^4.0.2:
6350+
version "4.2.0"
6351+
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
6352+
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
6353+
62536354
prelude-ls@^1.2.1:
62546355
version "1.2.1"
62556356
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz"
@@ -6383,7 +6484,7 @@ react-freeze@^1.0.0:
63836484
resolved "https://registry.yarnpkg.com/react-freeze/-/react-freeze-1.0.0.tgz#b21c65fe1783743007c8c9a2952b1c8879a77354"
63846485
integrity sha512-yQaiOqDmoKqks56LN9MTgY06O0qQHgV4FUrikH357DydArSZHQhl0BJFqGKIZoTqi8JizF9Dxhuk1FIZD6qCaw==
63856486

6386-
react-is@^16.13.0, react-is@^16.13.1:
6487+
react-is@^16.13.0, react-is@^16.13.1, react-is@^16.7.0:
63876488
version "16.13.1"
63886489
resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz"
63896490
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
@@ -6954,6 +7055,11 @@ shallow-clone@^3.0.0:
69547055
dependencies:
69557056
kind-of "^6.0.2"
69567057

7058+
shallowequal@^1.1.0:
7059+
version "1.1.0"
7060+
resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8"
7061+
integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==
7062+
69577063
shebang-command@^1.2.0:
69587064
version "1.2.0"
69597065
resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz"
@@ -7376,6 +7482,22 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
73767482
resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz"
73777483
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
73787484

7485+
styled-components@^5, styled-components@^5.3.3:
7486+
version "5.3.3"
7487+
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-5.3.3.tgz#312a3d9a549f4708f0fb0edc829eb34bde032743"
7488+
integrity sha512-++4iHwBM7ZN+x6DtPPWkCI4vdtwumQ+inA/DdAsqYd4SVgUKJie5vXyzotA00ttcFdQkCng7zc6grwlfIfw+lw==
7489+
dependencies:
7490+
"@babel/helper-module-imports" "^7.0.0"
7491+
"@babel/traverse" "^7.4.5"
7492+
"@emotion/is-prop-valid" "^0.8.8"
7493+
"@emotion/stylis" "^0.8.4"
7494+
"@emotion/unitless" "^0.7.4"
7495+
babel-plugin-styled-components ">= 1.12.0"
7496+
css-to-react-native "^3.0.0"
7497+
hoist-non-react-statics "^3.0.0"
7498+
shallowequal "^1.1.0"
7499+
supports-color "^5.5.0"
7500+
73797501
sucrase@^3.20.0:
73807502
version "3.20.3"
73817503
resolved "https://registry.npmjs.org/sucrase/-/sucrase-3.20.3.tgz"
@@ -7393,7 +7515,7 @@ sudo-prompt@^9.0.0:
73937515
resolved "https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-9.2.1.tgz"
73947516
integrity sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==
73957517

7396-
supports-color@^5.3.0:
7518+
supports-color@^5.3.0, supports-color@^5.5.0:
73977519
version "5.5.0"
73987520
resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz"
73997521
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==

0 commit comments

Comments
 (0)