Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 05 04:46
    BenSchwab edited as member
  • Sep 05 04:45
    lelandrichardson edited as member
  • Sep 05 04:44
    gpeal edited as member
  • Jun 27 15:04
    Arlevoy closed #165
  • Jun 27 15:04
    Arlevoy opened #165
  • Mar 26 17:01
    yassinecc closed #164
  • Mar 26 17:01
    yassinecc opened #164
  • Dec 21 2018 12:20
    renatoagds closed #127
  • Nov 10 2018 07:25
    felipecsl added as member
  • Oct 24 2018 07:43
    arufian closed #163
  • Oct 24 2018 07:43
    arufian commented #163
  • Oct 24 2018 04:14
    listenzz commented #163
  • Oct 24 2018 03:11
    arufian opened #163
  • Sep 05 2018 14:19
    shaddeen closed #162
  • Sep 05 2018 14:19
    shaddeen opened #162
  • Sep 05 2018 00:09
    gpeal added as member
  • Jul 13 2018 14:51
    renatoagds commented #127
  • Jul 10 2018 21:12
    carvingpixel commented #49
  • Jul 10 2018 20:32
    carvingpixel commented #49
  • Jun 25 2018 00:17
    chirag04 removed as member
Nuno Campos
@nfcampos
i suggest having an element registry so that you don't have to registerComponent all components rendered in a portal, the only one registered is the portal itself
Leland Richardson
@lelandrichardson
yeah we can send function props no problem
but i try to dissuade people from doing so across screens
since we want screens generally to be deep linkable
but sometimes there’s a good reason for it
for things like portals into the navbar and stuff though there would be very good reasons to have function props
Nuno Campos
@nfcampos
yep i want a search bar on the nav bar
on another subject, i'm not sure i agree with the Tabs/Tab api
Leland Richardson
@lelandrichardson
yeah? which part?
Nuno Campos
@nfcampos
having them as "fake" components has 2 issues for me,1. it delays knowing which tabs to display, which is important since tabs are (usually) the first thing you see when you open the app
  1. it is confusing because you can't actually mix them with any other react component, kind of like Route component from react router before v4, i think people will expect/try to mix it with other react components and be surprised it doesn't works
Leland Richardson
@lelandrichardson
the tabs API isn’t used at airbnb, so it’s definitely one of the APIs that has some lee-way
Nuno Campos
@nfcampos
(sorry about the confusing layout that was supposed to be 1 and 2)
personally i'm not using the tabs api at all, because of the points above and a bug that it has somewhere, in just doing it on the native side
but i understand that's not a valid solution for a react native library
Leland Richardson
@lelandrichardson
yeah i was attempting to solve it the best way i could think of for being controlled from JS side
the delay is an important point
Nuno Campos
@nfcampos
yeah, and also, when you're using tabs on ios as the root view controller you maybe also want to have the launch screen have the same tabs, so it'd be nice if that could be done by the library as well (but this sounds like it'd need some build time code, which i don't know if it's possible in a react native library)
Ben Kraus
@benkraus
I for one would love to see the tabs API a little more "greenfield"
I actually started down that path and ran into a couple issues. Shouldn't be too hard to resolve
Just to find time...
Iván Villamil
@ivillamil
Does the Shared Element transition work for both iOS & Android?
Kwame Adjei
@edgeadjei
@lelandrichardson Can we get a github issue around installation? As per the readme i understand that installation is expected to have drastic changes on the road to v1. I'm exited to try native-navigation but due to the installation requirements, i'm holding off until the library can be used without the os specific boilerplate. I love what you guys are doing. Sadly i'm in no position to contribute due to my limited knowledge in native development but i'm very happy that there's a well thought out library to fill the react native navigation gap.
Rumen Rusanov
@hpstuff
Hi guys, I didn't see any information about how you can use pushNative or any other native controller call. I checked the native code and it's look like you have to register the controllers that you want to present/push from react native but I'm not really sure. Is anyone try this or know how is suppose to work?
Paul Matyukov
@matpaul
Hello all! There is an issue with reloading -> I have screen component (CheckLogin) it make decision: show app or show login - so every time when i reload(dev mode) - all viewControllers in coordinator still exist and push one more. Maybe i do something wrong? Also i want to try implement Tabs without native part - any advices where to start?)
Madhava Jay
@madhavajay
// index.ios.tsx
import Home from './home'
import Login from './login'
import Navigator from 'native-navigation'

Navigator.registerScreen('demo', () => Login)
Navigator.registerScreen('Home', () => Home)

// login.tsx
import * as React from 'react'
import Navigator from 'native-navigation'
import {
  Alert,
  AppRegistry,
  Button,
  Text,
  View
  } from 'react-native'
import { styles } from './styles'

export interface Props {}
export interface State {}

export default class LoginScreen extends React.Component<Props, State> {
  render() {
    const onPressFunction = () => {
      console.log('clicked')
      Navigator.present('Home')
    }

    return (
      <View style={styles.container}>
        <View>
          <Text style={styles.welcome}>
            Welcome to React Native! (in TypeScript)
          </Text>
          <Text style={styles.instructions}>Please Login Below</Text>
          <View style={styles.buttonContainer}>
            <Button
              onPress={onPressFunction}
              color="black"
              title="Login"
              accessibilityLabel="Login"
            />
          </View>
        </View>
      </View>
    )
  }
}
I see login but Navigator.present('Home') does nothing...?
console.log('clicked') appears in the debug window
anyone got an idea?
Emiel van Liere
@emielvanliere
@hpstuff did you figure out how to use pushNative?
Rumen Rusanov
@hpstuff
unfortunately no, I didn't have time lately but I will dive deep into this soon If no one can help.
Rumen Rusanov
@hpstuff
Hello folks here I want to share with you simple example of how we can push native viewcontrollers from js https://gist.github.com/hpstuff/e190ac160355a15a02eea6fd4c60c0b7 is only for iOS if anyone have time can search for how this can be done in Android.
Sat Mandir S. Khalsa
@smkhalsa
@lelandrichardson Any update on the project? Can we expect further development any time soon?
Ben Kraus
@benkraus
Zain Sajjad
@zsajjad93_twitter
Hey, is there any getting started guide. I don't have experience of native mobile app development.
esam091
@esam091
If you don't have native development experience, reactnavigation.org would be a simpler choice
it works out of the box without any setup
Zain Sajjad
@zsajjad93_twitter
Yes i have already used it. I want to integrate lottie in our app in future and we're in the process of complete re-write.
Adrian Thomas
@adriandeveloper
Just saw a post about this on Medium. Sad that this isn’t actively being worked on since this has the potential to be th de-facto Navigation for React Native. This is an article I read that states how to integrate native-navigation with react navigation. Hope this is useful to someone. https://medium.com/@ericvicenti/playing-with-react-navigation-and-airbnbs-native-navigation-4e49fc765489
preetam patil
@preetampatil3d
Currently i am using react-native-router-flux with redux but facing lots of problems such as adding custom drawer (Somehow i have manages) but its really hard to customize navbar. So planning to switch 75% developed app to native-navigation.
So wanted to ask that how difficult is to migrate. ?
esam091
@esam091
do you want the navbar to use custom view?
it's also difficult in native-navigation
you'll get better chance using wix's react-native-navigation
preetam patil
@preetampatil3d
is it easy to migrate?
esam091
@esam091
I think it would require some time and effort to migrate since they have different architecture
and you will also need some native development knowledge
if your app is a pure React Native app, you can just use react-navigation
JohnWatsonDev
@johnwatsondev
Hello, everyone. I have some question about the source of react-navigation. Anybody can help me? Thanks in advance.
Joohong Kim
@aJoohongKim
I am very interesting in using native-navigation and working hard to run in my project.
Joohong Kim
@aJoohongKim
I've done it with my project..
Christian Jost
@cjost1988
Hey guys, I want to start a new react-native application and now trying to find out which library fits best to add navigation experience to the app. In my very first impression airbnb/native-navigation looks exactly the direction I want to head to, but what I noticed was, that the repository has its last changes a year ago and it's also marked as beta. Is there still a progress? Or did the progress stopped for this project and the overall recommendation is using wix/react-native-navigation?