Git Product home page Git Product logo

Comments (15)

Sridhar1213 avatar Sridhar1213 commented on July 22, 2024 1

@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.

samuelltk avatar samuelltk commented on July 22, 2024

@mmazzarolo

from react-native-modal-datetime-picker.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

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.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

@samuelltk closing, feel free to re-open if needed.

from react-native-modal-datetime-picker.

samuelltk avatar samuelltk commented on July 22, 2024

@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.

AlanFoster avatar AlanFoster commented on July 22, 2024

@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:

app

from react-native-modal-datetime-picker.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

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.

AlanFoster avatar AlanFoster commented on July 22, 2024

@mmazzarolo Awesome, I'll try and give that a go. Thanks for the great component 👍

from react-native-modal-datetime-picker.

kyangy avatar kyangy commented on July 22, 2024

Hi! @mmazzarolo i was wondering if there was a fix for this yet?

from react-native-modal-datetime-picker.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

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.

JoyBoy-369 avatar JoyBoy-369 commented on July 22, 2024

@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.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

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.

JoyBoy-369 avatar JoyBoy-369 commented on July 22, 2024

@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.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

No worries, glad it's working :)

from react-native-modal-datetime-picker.

anshif10 avatar anshif10 commented on July 22, 2024

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)

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.