Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning for standard use of Link in react-router-native #7281

Closed
allpwrfulroot opened this issue Apr 24, 2020 · 1 comment
Closed

Warning for standard use of Link in react-router-native #7281

allpwrfulroot opened this issue Apr 24, 2020 · 1 comment

Comments

@allpwrfulroot
Copy link

Version

react-router-native, 5.1.2

Steps to reproduce

<Link to="/login" testID="login">
     <Text>Sign in</Text>
</Link>

or

<Link to="/login" component={TouchableOpacity} testID="login">
     <Text>Sign in</Text>
</Link>

Expected Behavior

Should work as documented

Actual Behavior

Failed prop type: Invalid prop 'component' of type 'object' supplied to 'Link', expected 'function'

Screen Shot 2020-04-23 at 10 15 12 PM

@timdorr
Copy link
Member

timdorr commented Apr 24, 2020

Fixed in #7276. Not released yet.

@timdorr timdorr closed this as completed Apr 24, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants