Closed ursnj closed 2 years ago
I'm experiencing exactly the same error, now running on Expo SDK 46 (react-native@0.69.4
)
when will a release be made with the fix? looks like the PR is already done
I dont think this is active , so i ahve fixed it in react-native-linkify library
@ursnj could you share the link to this library? cant find it - react-native-linkify
@ursnj you are still using const textPropTypes = Text.propTypes || {} in that source at the new repo if I am not mistaken. This would throw the same error. It should be TextPropTypes right?
@karanmartian did you try @ursnj's package? Solved the issue for me π. It would prefer a fix to this repo here, but if it is not active what can we do?
@obipawan this new release is giving typescript issues.
import Hyperlink JSX element type 'Hyperlink' does not have any construct or call signatures
.
Oh crap i messed up the export! I'll fix this in an hour, I'm outside without my machine. In the meanwhile you can import {Hyperlink} from 'react-native-hyperlink'.
Works like a charm, thanks π
Describe the bug
Warning: Failed prop type: Hyperlink: prop type
linkStyle
is invalid; it must be a function, usually from theprop-types
package, but receivedundefined
.This often happens because of typos such asPropTypes.function
instead ofPropTypes.func
. at Hyperlink (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=njsolutions.watchpartys&modulesOnly=false&runModule=true:216800:22)To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.