4

I wanna be able to use my app on my iPhone or my Android phone without the need of releasing it to App Store or Google Play Store.

6 Answers6

1

or just use EXPO tools if you are open to using expo development environment for react native

1

If your project is based on React-Native-CLI and your development environment is all set-up then just run command 'react-native run-android' in the terminal. It will generate a debug apk file which you can be found in the directory:

android > app > build > outputs > apk > debug > app-debug.apk

You can directly install this debug apk in your android phone by connecting the device in the debugging mode and run the above command!

Ali Hasan
  • 3,843
  • 1
  • 5
  • 9
0

In Xcode, add your Apple ID to Accounts preferences, described in Adding Your Apple ID Account in Xcode.

In the project navigator, select the project and your target to display the project editor.

Click General and choose your name from the Team pop-up menu.

Connect the device to your Mac and choose your device from the Scheme toolbar menu.

Below the Team pop-up menu, click Fix Issue.

Xcode creates a free provisioning profile for you and the warning text under the Team pop-up menu disappears.

Click the Run button.

Xcode installs the app on the device before launching the app.

Test iOS app on device without apple developer program or jailbreak

Turnipdabeets
  • 5,815
  • 8
  • 40
  • 63
0

For IOS you must have a developer account firstly. And then, you can send your app to itunesconnect and get the app from testflight. Or You can run your ios app on device by using cable. But you dont run your app in developer mode.

For android you just need get the apk from android studio. But some steps there are. Follow this steps for get the apk.

How can I generate an apk that can run without server with react-native?

Yasin Ugurlu
  • 691
  • 5
  • 11
0

You can Side load your react native app in iPhone or iPad using Xcode

  1. Open your_projectname.xcworkspace from ios folder in Xcode

  2. XCode - Choose your destination device simulator or device from
    Product -> Destination -> Select the device

  3. Create a Temporary provision profile From project Target -> Signing & Capabilities (Required only for physical device, for simulator don't require this)

  4. Build and Run your project

Rahul.S
  • 343
  • 7
  • 16
-1

React Native's official site has a guide on how to install your app without releasing it.

The tl;dr is as follows:

For ios:

cd AwesomeProject
react-native run-ios

For android:

cd AwesomeProject
react-native run-android
Quilty Kim
  • 455
  • 1
  • 4
  • 18