Skip to content

Module '"react-native-picker-select"' has no exported member 'defaultStyles' #431

Open
@mkizesov

Description

@mkizesov

Describe the bug

Import error for "defaultStyles":

Module '"react-native-picker-select"' has no exported member 'defaultStyles'. Did you mean to use 'import defaultStyles from "react-native-picker-select"' instead?
ts(2614)

To Reproduce

Steps to reproduce the behavior:

Add this import to ts/tsx file:
import { defaultStyles } from 'react-native-picker-select';

Expected behavior

According to README that's how we should import "defaultStyles" from the library.

Screenshots

Screenshot 2021-04-08 at 12 51 45

Additional details

  • react-native-picker-select version: 8.0.4
  • TypeScript

Reproduction and/or code sample

https://snack.expo.io/AgnhXbXXT

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