Nxdom Framework

Nusantara eXtreme Development Object Model — dokumentasi resmi

Arsitektur dan struktur proyek

index.js · App.js · templates/

Halaman ini menjelaskan fondasi proyek NexaJS React Native (Expo), termasuk relasi file inti dan peran tiap folder utama.

Arsitektur Singkat

PeranLokasiKeterangan
Entry point Expoindex.jsRegister root component dan filter log.
Root ReactApp.jsMount AppNavigator dan sinyal preview.
Navigator utamaassets/modules/navigation/AppNavigator.jsBootstrap routes, session, properti, status bar.
Peta routetemplates/routes.jsSumber daftar screen stack dan opsi header.
Config endpointconfig.jsHost API, URL turunan, Firebase config.
SDK NexaJSassets/modules/Barrel export runtime, UI, storage, helper.

Struktur proyek NexaJS React Native (Expo)

Struktur kerja proyek dipisah antara root app, SDK lokal NexaJS, dan layar aplikasi.

Development/React/index/ |- index.js |- App.js |- config.js |- app.json |- babel.config.js |- metro.config.js |- package.json |- assets/ | `- modules/ # NexaJS local package `- templates/ # screen dan routes app
LokasiFungsi
index.js, App.jsTitik masuk Expo dan root render React.
assets/modulesPaket lokal NexaJS untuk import terpusat.
templatesScreen aplikasi, route stack, dan modul fitur.
config.jsHost backend, API model, drive, dan firebase.

NexaJS mobile dan referensi situs

Jalur ini khusus mobile app. Entry utamanya index.js dan App.js, bukan index.html seperti dokumentasi web.

Folder assets/modules (NexaJS)

Folder ini adalah inti SDK klien NexaJS yang dipakai semua screen. Konsepnya satu barrel import untuk React Native, komponen Nexa, storage, serta runtime.

BagianPeran
assets/modules/index.jsBarrel export seluruh API yang dipakai di app.
assets/modules/Nexa.jsSinkron config.js ke objek global NEXA.
assets/modules/navigationNavigator utama dan helper navigasi.
assets/modules/StorageNexaDBLite, sync data, model, dan storage helper.

Memulai dengan impor NexaJS

Praktik yang dianjurkan adalah satu import dari paket lokal NexaJS.

import { View, StyleSheet, Text, Avatar, Buttons, NexaDBLite, properti } from "NexaJS";