Skip to content
Advertisement

Tag: navigation

Show/Hide Component by passing useState Value React

I’m building a website with React and Bootstrap which would have a static footer. The footer will contain two buttons – Back, and Next. Clicking ‘back’ decrements an index, and clicking ‘next’ would increment the index. Ideally this index would keep track of which js component to show or hide using a ternary statement with with display: ‘inline’ or ‘none’.

Avoid repeating params in stack navigation

I am building the auth part of the stack navigation for a react navigation app, and ended with something like thiss: Is there any way I can avoid adding the url initialParams everywhere and add it maybe to the stack group screen around? I tried to add it in the screenOptions prop in the stack group around, but didn’t work.

Nav bar Active tab color change

My code is not working I don’t know why? someone, please help me out. I am not able to add a class name to the active nav bar css javaScript Answer 1) You have to use . for class selector as: 2) You have to use add method to add a new class as: JS Also, there is a typo

Slick slider custom dots

I was wondering if there is a way to use custom slick slider dots. When I search, all I can finds is examples on how to change the dots into thumbnails from the slides, however this is not what I’m trying to accomplish. I just want to use my own png pictures for the active and non-active dot navigation. I

Advertisement