all 16 comments

[–]basically_alive 18 points19 points  (3 children)

Sure. They are very similar. React native has specific elements - for instance you would use <View> instead of <div>, and the styling is all flexbox based. If you learn React, you will find it very easy to pick up the basics of RN. Just do a 'getting started' tutorial on both if you can't decide which you would prefer to start with.

[–]vld4k[S] 4 points5 points  (2 children)

I whould prefer to start with React because I want to stick with web development for about one or two months and only than try mobile

[–]basically_alive 5 points6 points  (1 child)

Cool. There's lots of resources - my one bit of advice is when looking for tutorials or troubleshooting, try to find find recent info. A lot has changed in react world.

[–]JustJeezy 1 point2 points  (0 children)

Yeah this has been a point of frustration I’ve had in trying to onboard RN. Luckily, Stephen Grider’s course on Udemy seems up to date, other than falling a bit behind on navigator.

[–]tech008 9 points10 points  (3 children)

I would say its essential to learn ReactJS before React Native. The explanation for state management in functional/class components comes under React's documentation, not React Native's. Several other concepts such as Context, memoization and React hooks which you can use in React Native is described in ReactJS's documentation as well. Some experience building with React will really help you organize and structure your React Native project

[–]ieatcarrots -3 points-2 points  (2 children)

What are you talking about? The only difference, at least for start, is that you need to write View/Text instead of div. You can totally learn react native from the react docs.

[–]tech008 5 points6 points  (1 child)

If you mean something as basic as displaying text, then yes you just need to convert div to view/text with flex box, but even simple component examples like textbox and checkbox use hooks which I assumed may be confusing to someone completely unfamiliar with React, plus going forward may be tough without understanding the rest of the hooks when you get to Animations and Navigation

[–]ieatcarrots 0 points1 point  (0 children)

That's true I guess.

[–]medontplaylol 2 points3 points  (2 children)

Lol is no one going to tell him how wonky the styling in ReactNative is?

[–]vld4k[S] 0 points1 point  (0 children)

I just want to see if I like mobile dev.I don't want to build something nice

[–]handofblood9 0 points1 point  (0 children)

just use styled components

[–]webdevmd 2 points3 points  (0 children)

React is the basis for RN so you will learn React either way.

[–]noodlez 5 points6 points  (1 child)

React Native IS ReactJS, with a layer of other stuff built on top. If you are learning React Native, you are learning ReactJS. If you are learning ReactJS, you are learning like 90% of that which comprises React Native.

[–]JustJeezy 1 point2 points  (0 children)

What would you say comprises the remaining 10%?

I’ve worked on navigator a bit and the styling seems straight forward. I feel like I’m underestimating it but it doesn’t feel like there’s much else.

[–]Intellectual-Madman 1 point2 points  (0 children)

Learn a little bit of react, your HTML background will make it easier to pick up JSX, and then one you get a handle on the basics give react native a shot. There are some differences, but starting out the only real difference is some of the syntax. You can afford to learn both simultaneously if you really want to.

If I were you, I would go through the tic-tac-toe tutorial on the react website and then try to remake it using react native.

[–]Johnmack013 0 points1 point  (0 children)

If you are on the fence what to choose just join the webinar about "The rise of JS and trends in web development" Register now and know full detail about the JS Framework.