Open sloorush opened 4 years ago
I love the design for the navbar but I am having the same issue, i had a working navigation bar, once i replaced it with this one i had the same issue that the url link changes but the view doesn't.
yep same
Thanks for contacting me. I want to ask if you used "react-router-dom" in your project.
yes, this package https://www.npmjs.com/package/react-router-dom
Can I see the repo or the code
Did this issue get resolved? I have the same problem where it will change the URL but not the view. My original Router Links work just fine but the navbar isn't working. I'll link my repo but you won't be able to clone and host without my keys.
Did this issue get resolved? I have the same problem where it will change the URL but not the view. My original Router Links work just fine but the navbar isn't working. I'll link my repo but you won't be able to clone and host without my keys.
ok try this: import the react-router like this: import { BrowserRouter as Router, Route } from "react-router-dom"; then but this:
and remove all (exact) from all routes except home route.
Did this issue get resolved? I have the same problem where it will change the URL but not the view. My original Router Links work just fine but the navbar isn't working. I'll link my repo but you won't be able to clone and host without my keys. Repo: -https://github.com/ZachPfeifer/silver-spirit-alchemy/blob/master/client/src/components/NavBar/Navbar4.js
ok try this: import the react-router like this: import { BrowserRouter as Router, Route } from "react-router-dom"; then but this:
...... and remove all (exact) from all routes except home route.
<Router>
<Route path="/" component={Home} exact />
<Route path="/about" component={AboutUs} />
<Route path="/cart" component={Cart}/>
</Router>
The issue persists and I only have problems with the navbar. I have buttons that work just fine using the react-router-dom .
Here is the condensed version of my App.js:
import React from 'react'; import { BrowserRouter as Router, Route } from "react-router-dom"; `
`
Very nice navbar , but I have indeed the same problem with react-router...
Hi guys, sorry if there is a problem in the navbar just give me two days and I will fix it. thanks a lot for using this package and thanks for contacting me. I will tell you when I finish fixing it.
Loved the design but facing the same issue.. :(
I created a PR that resolved this issue for me on mobile devices.
Really nice Navbar but having the same issue with react-router-dom
`
</Router>`
On a side note anyway to just have text instead of a logo?
Same Issue Again Any Help
Hi guys, sorry if there is a problem in the navbar just give me two days and I will fix it. thanks a lot for using this package and thanks for contacting me. I will tell you when I finish fixing it.
bro I like the design but not using it because of navigation issue
Yes, I have the same problem. A pity because it's an awesome design.
the pull request didn't seem to change anything, neither did the advice given by the owner. such a shame, it's a really simple navbar to setup. i hope to see it fixed soon!
i have the same problem
I have fixed the page change bug in PR : #21
I have fixed the page change bug in PR : #21
@Nazeh-Taha are you planning to publish this to the NPM registry soon ?
@pr7prashant It should not happen yet I guess, because there are some small css positioning issues of the navbar and gsap related issues
Thanks @lorstenoplo I also noticed that the navbar is not sticky on top for mobile devices. Can I create a feature request for this ?
@pr7prashant yeah you can
has anyone made it work? i added the component, as well as the route under. still not working
@karlaluuu Did you install the package using npm or yarn from the registry
@lorstenoplo did use npm. i'll try reinstalling the package and see
@karlaluuu Don't there is no use because he ( @Nazeh-Taha ) hasn't published the latest version to the npm registry.
You can either wait for the latest release or Clone this repository instead ( #23 actually ) then :
npm install
in the right directorynpm run build
dist
folder generated by the build command node_modules > react-responsive-animate-navbar
then replace the existing dist
folder with the newly generated one hey, sorry for the late response. thank you, @lorstenoplo! made it work!
anyways, very good design as well. kudos!!!!
@karlaluuu Don't there is no use because he ( @Nazeh-Taha ) hasn't published the latest version to the npm registry.
You can either wait for the latest release or Clone this repository instead ( #23 actually ) then :
- Run
npm install
in the right directory- Run
npm run build
- Copy the
dist
folder generated by the build command- Now go to the directory where your project is located
- Navigate to
node_modules > react-responsive-animate-navbar
then replace the existingdist
folder with the newly generated one
question. is there any timeline to get the latest version out in the npm registry? just realized that this method works locally, but not being catched by my site deployed in a web hosting company. anyone using netlify to host their site and made it work? :(
I think this article will help you. https://codeburst.io/getting-started-with-react-router-5c978f70df91