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
Hi please see attached. im using you example from here the list is way below the dropdown!
The text was updated successfully, but these errors were encountered:
import React, { useState } from "react"; import { SafeAreaView, StyleSheet, View } from "react-native"; import DropDown from "react-native-paper-dropdown-updated"; import { Provider as PaperProvider } from 'react-native-paper';
function Dashboard() { const [showDropDown, setShowDropDown] = useState(false); const [gender, setGender] = useState(""); const genderList = [ { label: "Male", value: "male", }, { label: "Female", value: "female", }, { label: "Others", value: "others", }, ];
return (
<PaperProvider> <SafeAreaView style={styles.safeContainerStyle}> <DropDown label={"Gender"} mode={"outlined"} visible={showDropDown} showDropDown={() => setShowDropDown(true)} onDismiss={() => setShowDropDown(false)} value={gender} setValue={setGender} list={genderList} /> </SafeAreaView> </PaperProvider>
) }
const styles = StyleSheet.create({ containerStyle: { flex: 1, }, spacerStyle: { marginBottom: 15, }, safeContainerStyle: { flex: 1, margin: 20, justifyContent: "center", }, });
export default Dashboard;
Sorry, something went wrong.
No branches or pull requests
Hi please see attached.
im using you example from here
the list is way below the dropdown!
The text was updated successfully, but these errors were encountered: