Skip to content

ExNavigator (Styles) undefined  #104

Closed
@andreasbhansen

Description

@andreasbhansen

With the new release (2.0.3), has something happened to ExNavigator (Styles)? In the previous version I used, I could style the navBar left/right buttons like this:

import { ExNavigator } from 'react-native-router-flux';

...

      <TouchableOpacity
        touchRetentionOffset={ExNavigator.Styles.barButtonTouchRetentionOffset}
        style={[ExNavigator.Styles.barRightButton]}>
        <Text style={ExNavigator.Styles.barRightButtonText}>
          ...
        </Text>
      </TouchableOpacity>

but now, this is thrown:
Cannot read property 'Styles' of undefined

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