Skip to content

Super expression must either be null or a function, not undefined #2488

@Frexuz

Description

@Frexuz

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.21
  • react-native v0.45.1

Expected behaviour

Running the app successfully.

Actual behaviour

Using Tabs isn't working for me. Removing it works fine!

class AppRouter extends Component {
  render () {
    return (
      <Router
        createReducer={reducerCreate}>
        <Modal hideNavBar>
          <Scene hideNavBar>
            <Tabs
              key='tabbar'
              showLabel
              swipeEnabled={false}
              tabBarPosition='bottom'
              lazy>
              <Stack
                key='HomeStack'
                title='Home'
                icon={TabIcon}
                initial >
                <Scene
                  key='Profile'
                  hideNavBar
                  component={UserHistoryList}
                />
              </Stack>
            </Tabs>
          </Scene>
       </Modal>
      </Router>
    )
  }
}

screen shot 2017-10-10 at 16 27 10

Steps to reproduce

  • Strangely, the Example app works for me.

  • Another developer can run our repo fine.

  • I've tried rm -r node_modules, npm start --reset-cache and yarn install

I understand since its not easily reproducible, you don't have much to go on.

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