New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having trouble with antd-mobile 2.0 Picker and Expo v22 #2001
Comments
these have been fixed in 3b1a131 , #1984 , please wait to release
state = {
value: 'Art, Crafts, Handmade',
};
<Picker
data={MAPPED_CATEGORY_OPTIONS}
cols={1}
extra="Category"
title="Category"
onOk={e => console.log(e)}
okText="Okay"
value={this.state.value}
onChange={v => this.setState({ value: v })}
onDismiss={e => console.log(e)}
>
<List.Item arrow="horizontal" />
</Picker> |
Thank you for your help @silentcloud Did okText work for you when you cloned the project? |
@silentcloud I'm nearly 100% okText is not taking in that reproduction repo. |
I agree with you @acomito. |
@acomito @witalobenicio Try to use version 2.0.1, this has been released 2 days ago. |
It's perfect thanks @silentcloud |
@acomito It's working now. Thanks. I'm just not able to show my selected value on the <List.Item> |
@acomito onOk is not being called yet. |
@witalobenicio |
Version
2.0.0
Environment
expo v22, iphone 7
Reproduction link
https://github.com/acomito/antd-20-expo-22
Steps to reproduce
What is expected?
What is actually happening?
I used a pretty similar setup with no problems using expo v20/21 and antd-mobile pre-2.0
In general, for picker, is it better to use (for a single select) onChange or onOk?
The text was updated successfully, but these errors were encountered: