question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`TwilioVideoPreview` has no propType for native prop `RNTwilioVideoPreview.scaleType` of native type `String`

See original GitHub issue

Steps to reproduce

  1. Updated to latest version
  2. 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:14

github_iconTop GitHub Comments

1reaction
slycodercommented, Mar 6, 2019

Does someone have a repo with a reproducible example? I can’t seem to get the same error.

0reactions
slycodercommented, Jun 19, 2019

Ah, it’s a proptype issue. Can you send a PR with your change?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found