Skip to content

Commit 5995a7f

Browse files
committed
Merge pull request #103 from mojotech/master
Allow instance methods to be accessed from the component directly
2 parents 704edde + 7d268d7 commit 5995a7f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,16 @@ class Router extends React.Component {
276276
margin = Styles.NAV_BAR_HEIGHT;
277277
}
278278

279+
this.toRoute = goForward;
280+
this.toBack = goBackwards;
281+
this.replaceRoute = replaceRoute;
282+
this.resetToRoute = resetToRoute;
283+
this.reset = goToFirstRoute;
284+
this.setRightProps = setRightProps;
285+
this.setLeftProps = setLeftProps;
286+
this.setTitleProps = setTitleProps;
287+
this.customAction = customAction;
288+
279289
return (
280290
<View
281291
style={[styles.container, this.props.bgStyle, extraStyling, { marginTop: margin }]}

0 commit comments

Comments
 (0)