Build whop apps using React Native for fast, mobile optimized experiences.
node -v
and pnpm -v
.
cd
into your new folder (named after your provided app name) and install dependencies using pnpm.
src/views/experience-view.tsx
.
This view will be rendered when a creator installs your app into their whop.
For example, you can render a button that will greet the current user id.
ship
command will build and upload your app to the whop servers. You can
limit the platforms by passing either --ios
or --android
. From here it
will be pushed live to your phone.
ship
command will NOT push the app to existing users of your app. It is
safe to run on existing web apps too meaning you can progressively migrate
your app to react native.pnpm ship
command prints out a link you can use to promote your
app to production.react-native-nitro-modules@0.26.3
react-native-video@6.16.1
@d11/react-native-fast-image@8.10.0
react-native-svg@15.12.0
react-native-webview@13.15.0
react-native-reanimated@3.18.0
react-native-gesture-handler@2.27.2
react-native-haptic-feedback@2.3.3
react-native-vision-camera@4.7.1
react-native-safe-area-context@5.5.2
useQuery
hook from @tanstack/react-query
to fetch
data.Base Domain
in the developer dashboardapiOrigin
from __internal_execSync("getAppApiOrigin", {})
verifyUserToken
function from the SDK to verify the request. Auth between react native apps and whop iframe apps is exactly the same meaning you can reuse your backend.useColorScheme
hook that you can use to get the current color scheme of the device. This works correctly out of the box on whop react native apps too!.
While we are still building our UI kit, you can use the following useColors
hook as inspiration to build your own dynamic color scheme:
try {} catch (e) {}
block.