eman1000 / TaxiApp

275 stars 227 forks source link

Setting up redux didn't work #3

Open KellyOriabure opened 7 years ago

KellyOriabure commented 7 years ago

Hi Emma, I really appreciate your TaxiApp tutorials but I could not get it to work. couldn't even get past setting up redux. This is the error i am getting: Element type is invalid. Expected a string (For a built-in component) or a class/function.......... bla bla bla.

Thanks Kelly

justindannguyen commented 7 years ago

It is because your import statement. Instead of import { Name } from "module"

Try to use this import Name from "module"

First one will import the exported function, the second will import default exported function

charles2k16 commented 6 years ago

im getting an issue on the redux side too. Everything is fine but i get this error ``**undefined is not an object (evaluation '_react2.PropTypes.object')**

netEmmanuel commented 5 years ago

Have you been able to resolve this issue? I have the same issue

charles2k16 commented 5 years ago

Yes I have.. Resolved it

On Mon, 3 Dec 2018, 10:46 Damilare Emmanuel, notifications@github.com wrote:

Have you been able to resolve this issue? I have the same issue

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eman1000/TaxiApp/issues/3#issuecomment-443666775, or mute the thread https://github.com/notifications/unsubscribe-auth/AYkHnruKD4GN1kHEABbZTBh6HFAsnSQjks5u1QD0gaJpZM4PNeuj .

netEmmanuel commented 5 years ago

KIndly tell me how you resolved it

charles2k16 commented 5 years ago

I would have to share my code with on github

On Mon, 3 Dec 2018, 10:48 Damilare Emmanuel, notifications@github.com wrote:

KIndly tell me how you resolved it

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eman1000/TaxiApp/issues/3#issuecomment-443667487, or mute the thread https://github.com/notifications/unsubscribe-auth/AYkHnt51ZEuL53fnx3_TTjdiqwR0ueuRks5u1QGFgaJpZM4PNeuj .

netEmmanuel commented 5 years ago

You can make a gist, please do if it works for you.

charles2k16 commented 5 years ago

I have the app running at a point.... Everything is fine. So I would push to my git hub

On Mon, 3 Dec 2018, 10:50 Damilare Emmanuel, notifications@github.com wrote:

You can make a gist, please do if it works for you.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eman1000/TaxiApp/issues/3#issuecomment-443668054, or mute the thread https://github.com/notifications/unsubscribe-auth/AYkHnhg_RVEZ4eaAsCgnXNqACPWJ6Ir3ks5u1QH6gaJpZM4PNeuj .

charles2k16 commented 5 years ago

I need to know where you having the issues and what error u having

On Mon, 3 Dec 2018, 10:50 Damilare Emmanuel, notifications@github.com wrote:

You can make a gist, please do if it works for you.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eman1000/TaxiApp/issues/3#issuecomment-443668054, or mute the thread https://github.com/notifications/unsubscribe-auth/AYkHnhg_RVEZ4eaAsCgnXNqACPWJ6Ir3ks5u1QH6gaJpZM4PNeuj .

charles2k16 commented 5 years ago

I've shared it

netEmmanuel commented 5 years ago

I have the error in my src/AppContainer/index.js

import React, {Component } from "react";
import PropTypes from 'prop-types';
import { Router } from "react-native-router-flux";

import scenes from "../routes/scenes";

import { Provider } from "react-redux";

export default class AppContainer extends Component {
    static propTypes = {
        store: PropTypes.object.isRequired
    }
    render(){
        return (

            <Provider store={this.props.store}>
                <Router scenes={scenes} />

            </Provider>

            );
    }
}
netEmmanuel commented 5 years ago

can you share a link to it if you have pushed the code?

charles2k16 commented 5 years ago

its not the app container, Its coming from the export ..where you exported the app container to

netEmmanuel commented 5 years ago

So what did you change to make yours work? kindly share your code

charles2k16 commented 5 years ago

https://github.com/charles2k16/Delivery-App-

netEmmanuel commented 5 years ago

Thanks, I will check it out