Giter Club home page Giter Club logo

rnplay's People

Contributors

brentvatne avatar expbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rnplay's Issues

How does "import Router from 'Router'" work?

Thank you very much for a great sample app. I haven't been able to get it up and running, but it's of great value to me to dig into the code.

I'm wondering what kind of magic you use to get this kind of statement work:

//main.js
import Router from 'Router';

No relative path and no npm package from what I can see. If the above do work, I have missed out on something important. I hate the relative paths in all of my imports.

TabNavigation errors with unable to resolve Router

Hi, I am following your TabNavigation sample. https://github.com/exponentjs/rnplay/tree/master/navigation
So I am getting an error on this, saying it cannot resolve the module router. Is this sample out of date and not in sync? My ES6 syntax isn't wonderful and since Router.js exports what looks like a function instead of a class named 'Router' seems like that is the issue. Thanks for any help!

import Router from 'Router';

However, I have this file called Router.js with these contents:

/**
 * @providesModule Router
 * @flow
 */

import {
  createRouter,
} from '@exponent/ex-navigation';

import ExploreScreen from 'ExploreScreen';
import MyAppsScreen from 'MyAppsScreen';
import HistoryScreen from 'HistoryScreen';
import AboutScreen from 'AboutScreen';
import DrawerNavigationLayout from 'DrawerNavigationLayout';
import TabNavigationLayout from 'TabNavigationLayout';
import AuthenticationScreen from 'AuthenticationScreen';

export default createRouter(() => ({
  explore: () => ExploreScreen,
  myApps: () => MyAppsScreen,
  history: () => HistoryScreen,
  about: () => AboutScreen,
  drawerNavigationLayout: () => DrawerNavigationLayout,
  tabNavigationLayout: () => TabNavigationLayout,
  authentication: () => AuthenticationScreen,
}));

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.