gusparis / react-native-month-year-picker

React Native Month Picker component for iOS & Android
MIT License
105 stars 72 forks source link

[IOS] Picker width does not update after orientation change #102

Open illusorytapirus opened 2 years ago

illusorytapirus commented 2 years ago

MonthPicker.ios.js

const { width } = Dimensions.get('screen');

const styles = StyleSheet.create({
  container: {
    width,
    position: 'absolute',
    zIndex: 500,
    bottom: 0,
  },
  pickerContainer: {
    height: 244,
    width,
  },
  picker: { flex: 1 },
});

When the orientation updated to landscape, the width remains unchanged. The picker width is less than the screen width.

tasaquino commented 1 year ago

Hello @illusorytapirus ! Did you manager to fix the issue somehow?

ParmarJigarr commented 11 months ago

@illusorytapirus @tasaquino Have you get solution for landscape issue ?