There is blank screen after publish app in ejected expo project


#1

Hi.
I’m new Expo and I have a issue for creating standalone app.
I have Expo project and after some time have need to use native code. So I ejected my expo project using the command expo eject.

After ejecting, I added native code and app worked well.

Finally for submitting app to both app store, I published expo app using expo publish.
After that I have blank screen. app was running but doesn’t show anything.
Anyone who know this issue advance me.
Following is my app.json file:

{
“expo”: {
“name”: “neighborhood”,
“description”: “This project is really great.”,
“slug”: “neighborhood”,
“privacy”: “public”,
“sdkVersion”: “30.0.0”,
“platforms”: [
“ios”,
“android”
],
“version”: “1.0.0”,
“orientation”: “portrait”,
“icon”: “./src/assets/images/icon.png”,
“notification”: {
“icon”: “./src/assets/images/notification_icon.png”,
“color”: “#000000
},
“updates”: {
“fallbackToCacheTimeout”: 0
},
“assetBundlePatterns”: [
/"
],
“ios”: {
“supportsTablet”: true,
“bundleIdentifier”: "
************",
“publishBundlePath”: “ios/neighborhood/Supporting/shell-app.bundle”,
“publishManifestPath”: “ios/neighborhood/Supporting/shell-app-manifest.json”
},
“android”: {
“package”: "
*********”,
“publishBundlePath”: “android/app/src/main/assets/shell-app.bundle”,
“publishManifestPath”: “android/app/src/main/assets/shell-app-manifest.json”
},
“isDetached”: true,
“detach”: {
“iosExpoViewUrl”: “https://s3.amazonaws.com/exp-exponent-view-code/ios-v2.8.4-sdk30.0.0-3de13133-1adc-4ba1-8569-a84011e570b4.tar.gz”,
“androidExpoViewUrl”: “https://s3.amazonaws.com/exp-exponent-view-code/android-v2.8.1-sdk30.0.0-271c32ab-0715-4dfb-8270-ecead3679bb4.tar.gz
},
“scheme”: “expe0dee74a172e495fbe7bdc05832274ac”
}
}

And follow is App.js file:

import React, {Component} from ‘react’;
import { StyleSheet, Text, View, Navigator } from ‘react-native’;

import {SafeAreaView, createStackNavigator, createSwitchNavigator} from ‘react-navigation’;

import SignIn from ‘./src/pages/SignIn’;
import CreateProfile from ‘./src/pages/CreateProfile’;
import Home from ‘./src/pages/Home’;
import CreateNotification from ‘./src/pages/CreateNotification’;

const Navigation = createStackNavigator(
{
SignIn: {screen: SignIn},
CreateProfile: {screen: CreateProfile},
Home: {screen: Home},
CreateNotification: {screen: CreateNotification},

}

)

export default Navigation;

I’m very happy to hear your advance.

Thanks


#2

in .expo folder
and in settings.json
try this
{
“dev”: false,
“minify”: true
}
instead of this
{
“dev”: true,
“minify”: false
}


#3

Hi, fahadtalpur

Thank you very much for your reply.

But my setting.json is following originally.
{
“hostType”: “lan”,
“lanType”: “ip”,
“dev”: false,
“minify”: true,
“urlRandomness”: “84-vif”
}

And app working is normal. Only one thing is doesn’t show view. So only show blank screen.

So I mean for example, if I add alert(“test alert”) in the componentDidMount() function of SingnIn.js(the first screen of navigator), then app shows the alert. but no displaying any view, only show black screen.
How can I do then?
I’m very happy to hear your advance.

Thanks.


#4

the best way is that now you have to download the new project eject the empty project then copy the code, for sure it will work


closed #5

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.