Coder Social home page Coder Social logo

Comments (6)

Aidurber avatar Aidurber commented on July 17, 2024 4

A PR has been created for this fix, awaiting for review and approval.

If you use something like patch-package, this fix is just to return UnimplementedView not <UnimplementedView /> in both PickerAndroid.ios.js and PickerIOS.android.js

from picker.

manhthepixta avatar manhthepixta commented on July 17, 2024

Same issue here. Waiting for the fix

from picker.

jainkuniya avatar jainkuniya commented on July 17, 2024

🎉 This issue has been resolved in version 1.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

from picker.

modulareverything avatar modulareverything commented on July 17, 2024

This seems to be back, using "react-native": "~0.61.5", and "@react-native-community/picker": "^1.3.0",

Here's the code:

const [tipValue, setTipValue] = useState(0.2);

...

<Picker
  selectedValue={tipValue}
  onValueChange={(itemValue, itemIndex) => setTipValue(itemValue)}
  style={{ width: "100%", height: 50 }}
>
  <Picker.item label="Fair" value={0.1} />
  <Picker.item label="Reasonable" value={0.2} />
  <Picker.item label="Generous" value={0.35} />
  <Picker.item label="Outrageous" value={0.5} />
  <Picker.item label="Are you nuts?!" value={1} />
</Picker>

Here's the error I'm getting:

ExceptionsManager.js:126 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

from picker.

Manodiestra avatar Manodiestra commented on July 17, 2024

I have this warning as well.
Using:
"@react-native-community/picker": "^1.6.1",
"react-native": "^0.62.0",
Code:
`
import {Picker} from '@react-native-community/picker';
...
<Picker
style={this.styles.picker}
selectedValue={data.LadderModel}
onValueChange={(itemValue) => {
this.changeLadderModel(itemValue, data_id);
}}

<Picker.item label="Model 3" value="3" />
<Picker.item label="Model 4" value="4" />
<Picker.item label="Model 5" value="5" />
<Picker.item label="Other" value="other" />

`
Warning:
ExceptionsManager.js:173 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

from picker.

ZainaliSyed avatar ZainaliSyed commented on July 17, 2024

I also facing this issue with

"@react-native-picker/picker": "^2.2.0",
"react": "17.0.2",
"react-native": "0.66.1",

Warning:
ExceptionsManager.js:173 Warning: React.createElement: type is invalid

import {Picker} from '@react-native-community/picker';

<Picker
style={this.styles.picker}
selectedValue={data.LadderModel}
onValueChange={(itemValue) => {
this.changeLadderModel(itemValue, data_id);
}}

<Picker.item label="Model 3" value="3" />
<Picker.item label="Model 4" value="4" />
<Picker.item label="Model 5" value="5" />
<Picker.item label="Other" value="other" />

from picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.