question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Convert Expo project to Original RN App

See original GitHub issue

I did yarn run eject to eject but it gave me this warning

Warning! We found at least one file where your project imports the Expo SDK

I know I have some modules which use Expo API like this -

await Expo.Font.loadAsync({
      Roboto: require('native-base/Fonts/Roboto.ttf'),
      Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'),
    });

Now I want to convert this to React Native Components so that I can eject without any errors so that I get index.android.js & index.ios.js in the root folder like we do while using react-native init example

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
deadcoder0904commented, Apr 9, 2018

After 4 hours, I got the answer… 😋 Had to install exp using npm i -g exp & then used exp detach to detach the project Also I added some fields in app.json for it to work as follows

{
  "expo": {
    "name": "Project",
    "slug": "project",
    "sdkVersion": "18.0.0",
    "privacy": "public",
    "android": {
      "package": "com.example.project"
    }
 }
}

Docs are given here

SideNote: It doesn’t create the folder structure like when done using react-native init… It creates android & ios folders respectively.

0reactions
Manoj002commented, Jun 25, 2018

@deadcoder0904 , what about size of apk? like its normal expo size apk of 25 mb or less

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert Expo project to Original React Native project
After 4 hours, I got the answer.. Had to install exp using npm i -g expo & then used expo eject to detach...
Read more >
Being free from “expo” in React Native apps - Medium
We're going to build an app using the command create-react-native-app RNwithExpo . It'll install everything for you and will run the project pretty...
Read more >
Ejecting to ExpoKit - Expo Documentation
The following steps are for converting a pure-JS Expo project (such as one created with Expo CLI) into a native iOS and Android...
Read more >
Convert Expo project to Original RN App · Issue #276 - GitHub
Now I want to convert this to React Native Components so that I can eject without any errors so that I get index.android.js...
Read more >
Move your development from Expo to React-Native the right way
You will need to follow these steps so that an ExpoKit project can work properly: · Start the bundler using `exp start` ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found