From b5f9462c3298dcc70e79f4a584e6ae51bd7125be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20MOINE?= Date: Fri, 8 Feb 2019 14:52:39 +0100 Subject: [PATCH] Add restProps to anchor Add the restProps to anchor to allow params like `style`, `className` and many more ! --- src/Link.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Link.js b/src/Link.js index 91441b5..f0829be 100644 --- a/src/Link.js +++ b/src/Link.js @@ -20,6 +20,7 @@ class LinkWithNavigation extends Component { routeKey, navigation, action, + ...restProps, } = this.props; const topNavigation = getTopNavigation(navigation); const topRouter = topNavigation.router; @@ -62,6 +63,7 @@ class LinkWithNavigation extends Component { navigation.dispatch(navAction); e.preventDefault(); }} + {...restProps} > {children}