Skip to content

Unsure what I am doing wrong, the component is throwing a undefined error on Android #471

@TomCaserta

Description

@TomCaserta

Version

  • react-native v0.22.2
  • react-native-router-flux v3.2.7

Expected behaviour

The app to load with my root screen for the menu.

Actual behaviour

Screenshot of Error: https://i.gyazo.com/517b07235e8dd46d02750791c35fc3c7.png

undefined is not an object (evaluating '_reactNative.NavigationExperimental.AnimatedView')

<unknown>
NavBar.js:29

requireImpl
require.js:31

<unknown>
TabBar.js:1

requireImpl
require.js:71

_require
require.js:31

<unknown> 
DefaultRenderer.js:1

requireImpl
require.js:71

I am unsure how to go about debugging this or what the error actually means, I will try now to see if I can reproduce this error on a fresh install. Although the error is not specific to this component/package the application only fails when I attempt to use react-native-router-flux Router component.

Here is an except of my code:

  render() {
    return (<Router>
            <Scene key="root">
                <Scene key="login" component={Login} title="Login"/>
                <Scene key="home" component={MenuContainer} title="Home"/>
            </Scene>
        </Router>);
  }

I am just trying it out, MenuContainer whilst is poorly named is actually my main page of my application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions