create-startupjs
Bootstrap a new StartupJS application
Usage
Create a new project from scratch
TBD
Add into an existing Expo (or pure React Native) project.
-
Create a new Expo (or pure React Native) project from any template.
-
Add startupjs to it by executing:
npm init startupjs
-
Wrap the root of your application into <StartupjsProvider>
component:
import { StartupjsProvider } from 'startupjs'
return (
<StartupjsProvider>
...
</StartupjsProvider>
)
For example, if you are using Expo with expo-router
, you'll need to do it in app/_layout.tsx
-
Start the app the same way as you would usually start Expo or React Native app.
-
To test the production server run yarn build && yarn start-production