Skip to content

Import example in docs has incorrect node module path  #240

@mgwedd

Description

@mgwedd

The README instructions suggest importing the module as follows:

import SegmentedControl from '@react-native-segmented-control/segmented-control';

However, the package is installed under @react-native-community/segmented-control, not @react-native-segmented-control/segmented-control

Suggested change:
import SegmentedControl from '@react-native-segmented-control/segmented-control';
Should be changed to:
import SegmentedControl from '@react-native-community/segmented-control';

Using React Native v0.63.3, Node JS v12.19.0and NPMv7.7.6`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions