Git Product home page Git Product logo

Comments (34)

mmazzarolo avatar mmazzarolo commented on July 22, 2024 3

Just a small update: still no updates.
Navigation Experimental development seems to be really slow 🎌

from ignite.

skellock avatar skellock commented on July 22, 2024 1

is sorry.

is fixed.

😺

from ignite.

jamonholmgren avatar jamonholmgren commented on July 22, 2024

The notification email was funny, because it removed the code tags:

screen shot 2016-03-31 at 1 37 03 pm

from ignite.

skellock avatar skellock commented on July 22, 2024

@GantMan is on this.

from ignite.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

Hey @GantMan, are you still working on the Navigation Experimental?
I've been working on an app that uses almost the same structure of ignite but I always used react-native-router-flux... which is a mess since it's last update.
I was looking for a substitute for the navigation and I'm still undecided between the standard navigation and the experimental one, any hint? :)
Thank you!

from ignite.

GantMan avatar GantMan commented on July 22, 2024

Hey @mmazzarolo :)

I spent a whole 2 days fighting the new Navigation Experimental, and it just wasn't ready. It hurt so bad! LOL. I saw he was updating it every day, so I decided to give it a bit of time and back off. Now it might be time to come back. I'll start carving some time to venture off again. If anyone else wants to take a look, I'm happy to download what I've learned to them.

from ignite.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

@GantMan i toyed a bit with it this morning, it seems to be working fine in my project (still need to add a drawer and some more tricky routes).
If you're interested I created this Gist with my current setup... I'm following most of your coding standard but you should style it a bit (especially NavigationHeader.js).

Disclaimer: I've stolen and then tweaked all that boilerplate from here 🐼

from ignite.

GantMan avatar GantMan commented on July 22, 2024

This is awesome, I'll check into this immediately. Also, this seems like a good opportunity if you want to get your name on the list of contributors to ignite ;)

from ignite.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

Yup, I've been a bit hesitant on contributing because I never tried the Ignite app itself, i only used the boilerplate.
Give me a day of two and I'll probably take a look at it and try to implement the new experimental navigation (I'm still playing with it).

from ignite.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

@GantMan, don't know if you're interested but I updated the Gist adding a native toolbar for both iOS and Android and the drawer.
This navigator seems to be super flexible and I organized all the navigation stuff like in my first file in the Gist, but I'm continuously refactoring it.

HOWEVER
I'm having some problem resetting the navigation stack (when switching routes from the drawer) and it seems to be a known issue.
When I'll reach a stable working navigator I'll also dive into the ignite one, if still needed.

👘

from ignite.

GantMan avatar GantMan commented on July 22, 2024

Man, you're my hero. I was just lining up this weekend to dive deep into re-writing the nav stack. I think if anything, I'll either hold off, or set the ground for you.

I would love an ignite navigation best practices PR.

from ignite.

GantMan avatar GantMan commented on July 22, 2024

@mmazzarolo - Any luck? I was thinking of taking a swing at this task this week.

from ignite.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

@GantMan, nope, I stopped working on it because currently replacing the stack is buggy, but we should have a fix soon.
If you need to reset the screen stack (e.g. from a logout or from a drawer) I would still wait a little.

from ignite.

GantMan avatar GantMan commented on July 22, 2024

awesome, will wait for a bit :) as per your recommendation.

from ignite.

markrickert avatar markrickert commented on July 22, 2024

Update: no updates.

:trollface:

from ignite.

steve21124 avatar steve21124 commented on July 22, 2024

The current initial ignite base generator has empty drawer menu. from above discussion
https://gist.github.com/mmazzarolo/5a4f235b6b07fa14247c0fb081b1f13f
https://github.com/caroaguilar/NavigationDrawerExample
http://caroaguilar.com/post/react-native-navigation-tutorial/

did any one has idea which way is a good way to create drawer menu?

from ignite.

GantMan avatar GantMan commented on July 22, 2024

We've got drawers working with our current nav, but not with NavigatorExperimental, which is what this ticket is geared towards.

Are you looking fora good example drawer in the initial ignite base?

from ignite.

steve21124 avatar steve21124 commented on July 22, 2024

yes, I am looking for a good example of drawer menu in ignite base. there are several drawer menu react native. but I just wandering. which one is a good one to use so it integrate nicely to ignite base

from ignite.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

@steve21224 I'd go with react-native-drawer, it is the most flexible one in my opinion.
The only issue I've had so far with it is regarding a11y but it might be a corner case.
It also integrates nicely with the current navigator of Ignite.

from ignite.

steve21124 avatar steve21124 commented on July 22, 2024

good thanks. then I will reuse the react native drawer from http://caroaguilar.com/post/react-native-navigation-tutorial/ then.....
ok. I found out the solution to integrate it to ignite
==> using this isnite root.js will push the drawer content
<RoundedButton onPress={() => this.navigator.push(Routes.ThemeScreen)}>
Theme Screen

also, if you have some snippet of your drawer menu integrate to ignite. feel free to share if you don't mind

from ignite.

steve21124 avatar steve21124 commented on July 22, 2024

Finally, I got it. my left drawer menu be able to replace the main container page.
Here what I did.
1.

  _navigate(route) {
      this.navigator.resetTo(route);
      this.navigator.drawer.close();
  }  
  renderDrawerContent () {
    return (
      View style={{marginTop: 30, padding: 10}}>
        RoundedButton onPress={() => this._navigate(Routes.PresentationScreen)}>
          Theme Screen
        RoundedButton>
        RoundedButton onPress={() => this._navigate(Routes.PresentationScreenB)}>
          Theme Screen
        RoundedButton>
        RoundedButton onPress={() => this._navigate(Routes.PresentationScreenC)}>
          Theme Screen
        RoundedButton>
      View>
    )
  }

and each presentation screen will have it own page. this will integrate nicely with ignite.
thanks for the help

from ignite.

GantMan avatar GantMan commented on July 22, 2024

Awesome @steve21124

If you'd like to do an example in a PR we'd be happy to accept it.

from ignite.

steve21124 avatar steve21124 commented on July 22, 2024

Thank you. Yes, if I can put some time in writing the tutorial for it. it will let you know.
This generator so awesome. I just look it yesterday. Now, I feel so productive in creating react native application.

From the ignite readme, I did not see there is generator for menu items. It might be cool. given a list of string array, using command "ignite generate menu 'Screen1,Screen2,Screen3,Screen4'". it will automatically create left drawer menu with the associate screen page from (ignite generate screen ...)

from ignite.

GantMan avatar GantMan commented on July 22, 2024

I like that! Thoughts, @kevinvangelder and @skellock ?

from ignite.

GantMan avatar GantMan commented on July 22, 2024

We will need to get ignite on the new navigator ASAP

image

from ignite.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

@GantMan, I'll try to submit a basic pr in two data if you're still interested

from ignite.

steve21124 avatar steve21124 commented on July 22, 2024

i think. any pr that help. it will be great

from ignite.

mmazzarolo avatar mmazzarolo commented on July 22, 2024

days*, not data
...and unfortunately I'm too busy with other stuff, hope to take a look at it soon.
In the meantime if anyone else want to start this might help.
P.S.: they still haven't fixed the reset issue (on 0.26.1)

from ignite.

GantMan avatar GantMan commented on July 22, 2024

I believe @skellock is slated to attack this this week.

from ignite.

ahmed1490 avatar ahmed1490 commented on July 22, 2024

these might be useful.

from ignite.

sudharsan1988 avatar sudharsan1988 commented on July 22, 2024

@steve21124 Just followed your instruction to add drawer menu content and that worked nicely but it makes the backbutton not working on the screen when we visit from the drawer menu item.

Is the backbutton working fine for you?

from ignite.

sudharsan1988 avatar sudharsan1988 commented on July 22, 2024

@steve21124 I replaced the below line on the _navigate() function,

this.navigator.resetTo(route);
to
this.navigator.push(route);

After made this change, back button works but there are two problems.

  1. If I click on the menu items couple of times, I have to press the back button couple of times to get to the previous screen

  2. Transition to the new screen isn't natural when we press the menu item from drawer. I guess, we need to change the transition method for drawer menu items.

Any idea how do we resolve this?

from ignite.

ahmed1490 avatar ahmed1490 commented on July 22, 2024

useful: http://www.reactnativediary.com/2016/06/23/navigation-examples-1.html

from ignite.

GantMan avatar GantMan commented on July 22, 2024

#235 - solves how we're going to handle this. Going to close this ticket.

from ignite.

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.