1. Core Components and APIs #
Created Tue Nov 14, 2023 at 11:26 PM
React remains the same #
React code - JavaScript, JSX, props, state, hooks all behave as is on all platforms
RN constructs #
RN has 2 fundamental constructs:
- Core components -
Text
,View
etc - Core APIs - Keyboard, Camera,
Platform
Just like the web, these two help with making UIs and interacting with the device.
Context matters #
But an important thing to keep in mind in RN is that it’s targets multiple platforms, so a construct may be:
- “Cross-platform” - works the same in all platforms. Example -
View
,Text
- “Platform-specific” - works and behave differently in different platforms.