React Native ਪ੍ਰੋਜੈਕਟ ਵਿੱਚ JavaScript/TypeScript ਕੋਡ ਅਤੇ native iOS/Android ਪ੍ਰੋਜੈਕਟਾਂ ਨਾਲ ਮਿਲ ਕੇ ਇੱਕ ਬਣਤਰ ਹੁੰਦੀ ਹੈ ਅਤੇ configuration ਹੁੰਦੀ ਹੈ। ਬਣਤਰ ਅਤੇ ਮੁੱਖ ਫਾਈਲਾਂ ਨੂੰ ਸਮਝਣਾ React Native apps ਨੂੰ navigate ਅਤੇ build ਕਰਨ ਵਿੱਚ ਸਹਾਇਤਾ ਕਰਦਾ ਹੈ।
ਬਣਤਰ ਦੇ ਮੁੱਖ ਹਿੱਸੇ
my-app/
App.js / App.tsx → the root component (app entry point)
src/ (or app/) → your JS/TS code (components, screens, etc.) — organize here
package.json → dependencies and scripts (npm/yarn) — like any JS project
node_modules/ → installed npm dependencies
ios/ → the native iOS project (Xcode) — for bare RN
android/ → the native Android project (Gradle) — for bare RN
index.js → registers the root component
app.json / app.config → app config (name, icon) — especially in Expo
(Expo projects hide ios/android; managed by Expo)
