Not showing on iOS, works on Android.
See original GitHub issueI’m wondering if there’s anything extra that needs to be done for this component to work on iOS. The picker works fine on Android, but the same code does not display the picker on iOS. Here’s my render method:
render() {
const datePickerText = this.state.valuePicked ? getSentDateString(moment(this.state.date).unix()) : "Not picked";
const removeValueButton = this.state.valuePicked ? this.getRemoveValueButton() : null;
return (
<View style={{ flex: 1, alignItems: 'center', marginBottom: 20, marginTop: 2 }}>
<Button
block
style={{marginLeft:20, marginRight:20, marginTop: 10}}
onPress={() => this.show(true)}
>
<Icon type="FontAwesome5" name='calendar-alt' />
<Text>{datePickerText}</Text>
</Button>
{removeValueButton}
{ this.state.show && <DateTimePicker value={this.state.date}
mode={this.state.mode}
is24Hour={true}
display="default"
onChange={this.dateChanged} />
}
</View>
);
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:17 (1 by maintainers)
Top Results From Across the Web
Move from Android to iPhone, iPad, or iPod touch
A new iPhone showing the Apps & Data screen, where you choose how you want. Open the Move to iOS app. On your...
Read more >What to do when Move to iOS app isn't working? - CopyTrans
Move to iOS app isn't working? The reasons for it may vary. We'll help you fix this issue and even look through the...
Read more >[2022] What To Do When Move To iOS Is Not Working?
The reasons why Move to iOS is not working include: 1. Unstable Wi-Fi Connection: File transfer only works if both your iPhone and...
Read more >How to resolve Move to iOS not working - Pocket-lint
iMobie How to resolve Move to iOS not working photo 2. Launch AnyTrans and connect your Android and iPhone via USB to your...
Read more >Top 7 Ways to Fix iPhone Hotspot Not Showing Up on Android
Is your iPhone hotspot not showing up on Android? This is a common issue that can get rather frustrating. Here are some simple...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In this ios case:
I think difference between ios and android to operate datetimepicker system
You can also add the following to your info.plist file:
<key>UIUserInterfaceStyle</key> <string>Light</string>