We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
callstack/react-native-paper#2997
The text was updated successfully, but these errors were encountered:
For accepting native margins for the DropDown component
Add this please
const DropDown = forwardRef((props, ref) => { const activeTheme = useTheme(); const { multiSelect = false, visible, onDismiss, showDropDown, value, setValue, activeColor, mode, label, placeholder, inputProps, list, dropDownContainerMaxHeight, dropDownContainerHeight, theme, dropDownStyle, dropDownItemStyle, dropDownItemSelectedStyle, dropDownItemTextStyle, dropDownItemSelectedTextStyle, accessibilityLabel, inputStyle // the text input style } = props;
And this
<TextInput style={inputStyle} value={displayValue} mode={mode} label={label} placeholder={placeholder} pointerEvents={"none"} theme={theme} right={<TextInput.Icon name={visible ? "menu-up" : "menu-down"}/>} {...inputProps} />
This change apply to use it as is
<CustomDropDown label={label} mode={"outlined"} visible={showDropDown} showDropDown={() => setShowDropDown(true)} onDismiss={() => setShowDropDown(false)} value={unit} setValue={setUnit} list={unitList} inputStyle={{ marginVertical: 10 }} />
Sorry, something went wrong.
sorry i forgot about inputProps property
No branches or pull requests
callstack/react-native-paper#2997
The text was updated successfully, but these errors were encountered: