diff --git a/src/index.js b/src/index.js index 07e24fc9..b7ce7b12 100644 --- a/src/index.js +++ b/src/index.js @@ -10,6 +10,10 @@ import { Dimensions } from 'react-native'; // This height was tested thoroughly on several iPhone Models (from iPhone 8 to 14 Pro) const IOS_MODAL_HEIGHT = 262; +const preserveSpaces = (label) => { + return label.replace(/ /g, '\u00a0'); + } + export default class RNPickerSelect extends PureComponent { static propTypes = { onValueChange: PropTypes.func.isRequired, @@ -298,7 +302,7 @@ export default class RNPickerSelect extends PureComponent { return items.map((item) => { return (