Comments (6)
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.
Same issue here. Waiting for the fix
from picker.
🎉 This issue has been resolved in version 1.1.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
from picker.
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.
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.
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)
- iOS picker styles HOT 5
- [BUG] [Android] Task uses output of task without declaring an explicit or implicit dependency HOT 1
- [Crash] Native iOS com.facebook.react.JavaScript (15): EXC_BAD_ACCESS (code=1, react native)
- Picker is not selecting 2 firts items on iOS HOT 1
- Picker freezes web app when selecting NEW item
- There are issues in the new version
- Picker is scrolling continuously when scrolled via touch
- Failed to build android after react native 0.72.3 HOT 5
- Picker is ALWAYS getting system theme (at least in Windows) HOT 1
- themeVariant is Not Working HOT 1
- Do not use this repo HOT 2
- bug: don't work: no label and no value HOT 8
- TypeError: Cannot read property 'Picker' of undefined HOT 2
- Picker 2.6+ transforms numeric values to strings HOT 4
- Selected value jumps back to first value when "Done" is tapped - Picker library v2.6.1, iOS only HOT 3
- @react-native-picker/picker could not be found within the project or in these directories
- react-native 0.71.8 with @react-native-picker/picker HOT 3
- can't remove gray background on IOS picker HOT 1
- On iOS, the value selected in onValueChange comes in null
- Picker Item is not listed on IOS HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picker.