This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 155
Allow the passing of props and bumped dependency versions #54
Open
MikaelCarpenter
wants to merge
81
commits into
t4t5:master
Choose a base branch
from
MikaelCarpenter:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@t4t5 :D also for anyone wanting to make these changes manually to their project. After updating the dependencies: |
MikaelCarpenter
changed the title
bumped dependency versions
Allow the passing of props and bumped dependency versions
Jul 31, 2015
@JHabdas I haven't checked it out yet, but would you want to use it for the nav bar transitions rather than the opacity from tween-state? |
…without having to navigate
MikaelCarpenter
force-pushed
the
master
branch
from
September 8, 2015 16:28
014f561
to
130500f
Compare
added this.props.replaceRoute()
Quick Border Fix
hideNavigationBar fix
added noStatusBar to <Router />
Changed resetToRoute to use a better navigator API Fixed some jslint warnings
Update index.js
Allow recent versions of react-native too!
React-native dependency version bump
Added docs for resetToRoute
removed drag stuff as per https://github.com/MikaelCarpenter/gb-native-router/pull/26/files
Adding resetToRoute API
Update README.md
Converting to ES-6 style, Implemented support for hiding the navbar per route Implemented support for an event emitter when a route is focused (useful when you want to know when you navigate back to a route) Fixed the missing closing tag intruduced in previous PR Fixed requires to be destructuring assignments instead
Added support for hiding navbar per route Style improvements
Styling improvements and fixing requires to be a destructuring assigmnent
Styling improvements
Adding docs for new features
Update index.js
Update NavBarContent.js
Update NavButton.js
Update README.md
fixed indent
Update NavBarContainer.js
Re-adding changes that got lost
adding lost code.. :(
Add RC versions to RN dependencies
Switching to facebook emitter
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
props
Originally had to pass
data
object and call it viathis.props.data.myProp
which seems unnecessary.dependencies
If you had a recent version of react-native, you would get errors when running
npm start
What
props
Instead of passing
data
in your route, you can now passpassProps
which takes in an object, and then creates a prop for eachkey: value
pair in the object.dependencies
Updated the version numbers in
package.json
dependencies.This is also an update to a previous PR (#47) by wenkesj
Issue
Props #39
Dependencies #53
Example
Your
Home
component can now usethis.props.prop1
andthis.props.prop2