Giter Site home page Giter Site logo

Comments (3)

github-actions avatar github-actions commented on April 28, 2024

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

  • @react-navigation/drawer (found: 6.6.6, latest: 6.6.11)
  • @react-navigation/native (found: 6.1.9, latest: 6.1.14)
  • @react-navigation/stack (found: 6.3.20, latest: 6.3.25)

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

from react-navigation.

John-CFO avatar John-CFO commented on April 28, 2024

I updated the dependencies to the latest versions, but the bug is still there.

from react-navigation.

John-CFO avatar John-CFO commented on April 28, 2024

For everybody who has the same issue. I have a solution. Now I use a custom dropdown menu.

const Stack = createStackNavigator();
const Drawer = createDrawerNavigator();

const CustomHelpModal = ({ navigation }: { navigation: any }) => {
const [isHelpMenuVisible, setHelpMenuVisible] = useState(false);

const openDropdown = () => {
console.log("Dropdown öffnen");
setHelpMenuVisible(true);
};

const closeDropdown = () => {
console.log("Dropdown schließen");
setHelpMenuVisible(false);
};

return (

<Item
title="Help"
iconName="help-circle-outline"
onPress={openDropdown as any}
/>
<View style={{ marginRight: 10 }}>
{isHelpMenuVisible && (
<View style={{ position: "absolute", right: 0 }}>


)}


);
};

const AppDrawerNavigator = () => {
return (
<Drawer.Navigator
initialRouteName="Home"
screenOptions={{
headerTitleAlign: "center",
drawerStyle: {
width: 280,
},

    /*--Help-Button--*/
    headerRight: () => <CustomHelpModal navigation={undefined} />,
  }}
>
  <Drawer.Screen name="Home" component={HomeScreen} />
  <Drawer.Screen name="Notification" component={NotificationScreen} />
  <Drawer.Screen name="Profile" component={ProfileScreen} />
</Drawer.Navigator>

);
};
const App = () => {
return (


<Stack.Navigator>
<Stack.Screen
name="Inside"
component={AppDrawerNavigator}
options={{ headerShown: false }}
/>
<Stack.Screen name="Onboarding" component={OnboardingScreen} />
<Stack.Screen name="Login" component={LoginScreen} />
</Stack.Navigator>


);
};

export default App;

good luck 🍀

from react-navigation.

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.