Comments (15)
@mmazzarolo So sorry! There was some issue with the ios simulator. It works fine on the Ipad.
Apologies for raising the issue
did you solved this issues? if yes please help me how to solve
from react-native-modal-datetime-picker.
from react-native-modal-datetime-picker.
Hello @samuelltk
Could you be a bit more specific?
What are you trying to achieve?
Did you already write some code regarding this issue?
The container modal should already resize itself correctly after a device rotation.
I don't know if the native pickers (DatePickerIOS / DatePickerAndroid / TimePickerAndroid) support the device rotation out of the box.
from react-native-modal-datetime-picker.
@samuelltk closing, feel free to re-open if needed.
from react-native-modal-datetime-picker.
@mmazzarolo please reopen this issure. tks.
Now, i just try again,,This issure is the same as last time...please help me, follow my step, you will see the issure on ios. tks
from react-native-modal-datetime-picker.
@mmazzarolo Running into the same issue; Triggering the modal's visibility seems to force the app's orientation whilst the modal is open for some reason:
from react-native-modal-datetime-picker.
Hi @AlanFoster, thank you for providing a screenshot.
It might be related to this issue of react-native-modal, which is the component used to implement the picker on iOS.
I'll try to take a look at it this weekend/next week.
In the meanwhile, if you want to speed up the solving of this issue, you can try playing a bit with the props of react-native-modal here (maybe by adding supportedOrientations={ ['portrait', 'landscape']}
).
Thank you 👍
from react-native-modal-datetime-picker.
@mmazzarolo Awesome, I'll try and give that a go. Thanks for the great component 👍
from react-native-modal-datetime-picker.
Hi! @mmazzarolo i was wondering if there was a fix for this yet?
from react-native-modal-datetime-picker.
Hey @kyangy, sorry for being late but I've been on holiday.
I thought the issue was solved in the react-native-modal discussion that was linked above.
Are you still having the issue?
Are you on iOS or Android? Which version of RN and dependencies?
from react-native-modal-datetime-picker.
@mmazzarolo This issue still exists. I even updated to react-native-modal 4.1.1.
The date time picker modal always opens in portrait. This happens in IOS btw. I haven't tested for android.
from react-native-modal-datetime-picker.
Hey @SevenSinS02 could you try swapping react-native-datetime-picker with react-native original date/time pickers and check if the problem persists?
from react-native-modal-datetime-picker.
@mmazzarolo So sorry! There was some issue with the ios simulator. It works fine on the Ipad.
Apologies for raising the issue.
from react-native-modal-datetime-picker.
No worries, glad it's working :)
from react-native-modal-datetime-picker.
while opening modal in landscape ios it's going to portrait mode but fine in android
<DateTimePickerModal
isVisible={open}
mode="date"
onConfirm={onConfirm}
onCancel={dismiss}
supportedOrientations={['portrait', 'landscape']}
/>
pls help
from react-native-modal-datetime-picker.
Related Issues (20)
- iOS keyboard input for mode="time" breaks the UI HOT 3
- Native module RNDatePicker tried to override RNDatePicker
- Customizing Background and Text Color in Android with Expo HOT 2
- Minimum and maximum time is not working on android but working for ios
- MinuteInterval time return current time in ios , android working fine
- `onHide` callback doesn't return a valid Date
- timeZoneOffsetInMinutes` is deprecated and will be removed in a future release. Use `timeZoneName` instead.
- Datepicker is not visible on iOS HOT 1
- Can't see the text in the picker modal (iOS) HOT 1
- Missing peerDependency on React
- how can only use it as only Month and year picker
- react-native-modal-datetime-picker(^17.1.0) is not showing on iOS 17.3.1 HOT 1
- Exception in HostFunction: Malformed calls from JS: field sizes are different.
- Can't install in react-native 0.74 using NPM I HOT 1
- Dark Mode is not working on Android devices.
- Time Zone Issue HOT 1
- WARN: `defaultProps` will be removed from memo components HOT 3
- isDarkModeEnabled doesn't work on spinner in iOS
- how to add a custom header in Android
- WARN: defaultProps will be removed from memo components
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 react-native-modal-datetime-picker.