Skip to content

Uncaught (in promise) Error: DeltaPatcher should receive a base Bundle when being initialized #24434

Closed
@ahmedkheikal

Description

Description

When trying to run react-native run-android on a linux machine I get the above error,
The error is not related to hot reloading as it appears at the first attempt to debug the app

Code Example

import React, { Component } from 'react';
import { StatusBar, Dimensions, ImageBackground, Alert } from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import { View, Text, Spinner, Button } from 'native-base';
import { baseUrl } from '../shared/baseUrl';
import { User } from './Models/User';
import { GlobalFont } from 'react-native-global-font';

export default class Login extends Component {
    constructor(props) {
        super(props);
        this.state = {
            loading: true,
            phone: '',
            password: '',
            loginButtonContent: () => null
        }
    }
 ...........
            <View keyboardVerticalOffset={-100} behavior="padding" style={{ flex: 1 }}>
                <StatusBar translucent={true} backgroundColor="transparent" barStyle="light-content" />

                <ImageBackground
                    progressiveRenderingEnabled={true}
                    source={require('./images/login-background.png')}
                    resizeMode="cover"
                    style={{ padding: 0, borderRadius: 0, height: Dimensions.get('window').height, width: Dimensions.get('window').width, flex: 1, justifyContent: "center" }} >
                    <View style={{ padding: 36, paddingTop: Dimensions.get('window').height / 2, justifyContent: "center", flex: 1, margin: 0 }}>
 ..........
                    </View>
                </ImageBackground >
            </View>
        );
    }
}

Environment

React Native Environment Info:
System:
OS: Linux 4.14 Manjaro Linux undefined
CPU: (4) x64 Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
Memory: 375.55 MB / 7.69 GB
Shell: 4.4.23 - /bin/bash
Binaries:
Node: 10.10.0 - /usr/bin/node
npm: 6.4.1 - /usr/bin/npm
IDEs:
Android Studio: 3.3
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.1 => 0.59.1
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    BugPlatform: LinuxBuilding on Linux.Resolution: LockedThis issue was locked by the bot.Tech: Bundler 📦This issue is related to the bundler (Metro, Haul, etc) used.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions