Styling a Component in React Native Web

  Рет қаралды 4,954

Ben Awad

Ben Awad

Күн бұрын

Пікірлер: 20
@Chocoholic1337
@Chocoholic1337 6 жыл бұрын
Again, I already said it in the last video, I really appreciate you taking us through your thought process. Don't ever drop that - because that definitely sets you apart from the rest!
@MattHagner
@MattHagner 6 жыл бұрын
To get the view to be circular, you need to give it a fixed height and width that are the same number, and a border radius of half the height. The text won't be centered, so to do that you'll need to set margin auto on the Text inside of the circular view. This was the easiest way I found to achieve that effect
@bawad
@bawad 6 жыл бұрын
thanks that sounds like it will work well
@99MISQ
@99MISQ 6 жыл бұрын
you need to set radius half of (width) or (height) and make sure height and width equal , example: width 20, height: 20, radius: 10, thank you your videos help me a lot
@bawad
@bawad 6 жыл бұрын
thanks
@AdemoyeOpeoluwa
@AdemoyeOpeoluwa 6 жыл бұрын
Great job bro.. could you please do an E-commerce app using React native after this series? Please
@devilmanscott
@devilmanscott 6 жыл бұрын
Trying to make a quick buck?
@bawad
@bawad 6 жыл бұрын
maybe
@AdemoyeOpeoluwa
@AdemoyeOpeoluwa 6 жыл бұрын
Ben Awad Okay bro 👍
@fr3fou
@fr3fou 6 жыл бұрын
How about using styled components? I heard it works with react native as well
@bawad
@bawad 6 жыл бұрын
I was thinking about that and I may add it later, but I'm pretty happy with just using the Stylesheet directly right now
@_ericsonluciano
@_ericsonluciano 6 жыл бұрын
@@bawad make also a course with styled-components :) like theming
@bawad
@bawad 6 жыл бұрын
sure
@fr3fou
@fr3fou 6 жыл бұрын
The way I do circles with border radius is by setting it to 50%
@MattHagner
@MattHagner 6 жыл бұрын
With StyleSheet from react native, borderRadius has to be a number, not a string so using '50%' won't work. The way to achieve the equivalent is by giving a fixed height and width, and setting border radius to half of that.
@enes_town
@enes_town 6 жыл бұрын
hey ben.. which keyboard do you use?
@bawad
@bawad 6 жыл бұрын
Das keyboard
@bawad
@bawad 6 жыл бұрын
Das keyboard
@gaos94
@gaos94 6 жыл бұрын
another tool you can use is coolors.co to generate random color schemas
@ivanrenedo9349
@ivanrenedo9349 6 жыл бұрын
Este curso es genial
Mobx Root Store
18:04
Ben Awad
Рет қаралды 6 М.
Introduction to React Native Web
16:26
Leigh Halliday
Рет қаралды 29 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Setting Up a React Native Web Monorepo
13:46
Ben Awad
Рет қаралды 22 М.
Configuring React Native for Yarn Workspaces
12:06
Ben Awad
Рет қаралды 12 М.
Darkroom Color Grading - “Can it be done in React Native?”
29:14
William Candillon
Рет қаралды 12 М.
How I Made a Game in React Native
12:01
Ben Awad
Рет қаралды 55 М.
How to Roll Your Own Auth
13:05
Ben Awad
Рет қаралды 127 М.
Should You Use React Native Web for Your Next Project?
9:07
Ben Awad
Рет қаралды 37 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 244 М.
Drag and Drop in React Native with PanResponder
19:19
Ben Awad
Рет қаралды 50 М.
React Router with React Native Web
11:56
Ben Awad
Рет қаралды 7 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН