📱React Native
Also known as React Native Framework, RN
Build phone apps with JavaScript. One set of code works on both phones.
Think of it like
Think of it like giving orders in one language. A helper turns them into each phone's own words.
Example
Jack already builds websites in React. He uses React Native to make a phone app without learning Swift.
Why it matters
Web developers can make phone apps with skills they have. Teams can share code between the site and the app.
Definition
Example code
jsx
<Button title="Say hi" onPress={() => console.log("Hi")} />Common mistake
Key takeaways
- 1JavaScript and React. The same skills used to build websites.
- 2Native parts. Each screen uses the phone's own buttons.
- 3One codebase. The same code ships to iPhone and Android.