`TwilioVideoPreview` has no propType for native prop `RNTwilioVideoPreview.scaleType` of native type `String`
See original GitHub issueSteps to reproduce
- Updated to latest version
- Start Video conversation on Android
Expected behaviour
Video conversation should start. This code actually works on ios.
Actual behaviour
I get following error, only on android:
Error: Error: Error: Error: TwilioVideoPreview has no propType for native prop RNTwilioVideoPreview.scaleType of native type String
If you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.
This error is located at:
in RNTwilioVideoPreview (at TwilioVideoLocalView.android.js:21)
in TwilioVideoPreview (at VideoConf.js:319)
in RCTView (at View.js:60)
in View (at VideoConf.js:297)
[...]
VideoConf.js:319 contains:
<TwilioVideoLocalView
enabled={true}
style={[styles.localVideo, {backgroundColor:'#CCC'}]}
/>
build.gradle contains:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Any help would be appreciated.
Environment
- Node.js version: v8.11.3
- React Native version: 0.55.4
- React Native platform + platform version: Android
react-native-twilio-video-webrtc
Version: master
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:14
Top Results From Across the Web
Developers - `TwilioVideoPreview` has no propType for native prop ...
TwilioVideoPreview ` has no propType for native prop `RNTwilioVideoPreview.scaleType` of native type `String`
Read more >Error: `VideoPlayer` has no propType for native prop ...
VideoPlayerView is a custom native component made in Android and IOS for my particular project. Here is a part of code exporting native...
Read more >How to validate React props using PropTypes - LogRocket Blog
Learn how to validate props with React PropTypes, React's internal mechanism for adding type checking to component props.
Read more >invariant violation viewproptypes has been removed from ...
Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
Read more >How To Use PropTypes In React - Web Dev Simplified Blog
Warning: Failed prop type: Invalid prop age of type string supplied to Component , expected number . This is great since we can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Does someone have a repo with a reproducible example? I can’t seem to get the same error.
Ah, it’s a proptype issue. Can you send a PR with your change?