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.

Error : 'ScrollView' has no propType for native prop 'RCTScrollView.onScrollAnimationEnd' of native type ' BOOL'

See original GitHub issue

I’m stuck on this error.

image

{ “name”: “app-20”, “version”: “0.0.0”, “description”: “Hello Expo!”, “author”: null, “private”: true, “main”: “node_modules/expo/AppEntry.js”, “dependencies”: { “axios”: “^0.16.2”, “expo”: “^20.0.0”, “latlng-to-zip”: “^0.0.1”, “lodash”: “^4.17.4”, “react”: “16.0.0-alpha.12”, “react-addons-update”: “^15.6.0”, “react-native”: “^0.47.2”, “react-native-calendar”: “^0.12.3”, “react-native-calendars”: “^1.5.8”, “react-native-communications”: “^2.2.1”, “react-native-easy-toast”: “^1.0.6”, “react-native-elements”: “^0.16.0”, “react-native-flexbox-grid”: “^0.3.1”, “react-native-google-place-autocomplete”: “^0.3.0”, “react-native-indicator”: “^0.6.7”, “react-native-loading-spinner-overlay”: “^0.5.2”, “react-native-maps”: “^0.16.2”, “react-native-modal”: “^3.1.0”, “react-native-modal-datetime-picker”: “^4.11.0”, “react-native-multiple-select-list”: “^1.0.4”, “react-native-progressive-input”: “^1.0.3”, “react-native-segmented-control-tab”: “^3.2.1”, “react-native-signature-pad”: “^0.0.8”, “react-navigation”: “^1.0.0-beta.11”, “react-redux”: “^5.0.6”, “redux”: “^3.7.2”, “redux-form”: “^5.0.1”, “redux-persist”: “^4.9.1”, “redux-thunk”: “^2.2.0” } }

{ “expo”: { “name”: “thapp”, “description”: “thapp”, “slug”: “thapp”, “privacy”: “unlisted”, “sdkVersion”: “20.0.0”, “version”: “1.0.5”, “orientation”: “portrait”, “primaryColor”: “#cccccc”, “icon”: “./assets/icons/app.png”, “loading”: { “icon”: “./assets/icons/loading.png”, “hideExponentText”: false }, “packagerOpts”: { “assetExts”: [“ttf”, “mp4”] }, “ios”: { “bundleIdentifier”: “com.thapp.exp”, “supportsTablet”: true }, “android”: { “package”: “org.thapp.exp”, } } }

I also tried replacing react-native package with “react-native”: “^0.47.2”, But didnt work.

Is this a bug report?

(write your answer here)

Have you read the Contributing Guidelines?

(Write your answer here.)

Environment

Steps to Reproduce

(Write your steps here:)

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:21
  • Comments:26

github_iconTop GitHub Comments

80reactions
nokwincommented, Sep 26, 2017

Found the possible solution!

  1. Bump expo version in package.json to 21.0.2
  2. Bump react-native version in package.json to 0.48.4
  3. Remove node_modules
  4. npm install or yarn install
  5. Change sdk version in app.json to 21.0.0 … ScrollView is working AGAIN! 😃
9reactions
courage-libertycommented, Sep 26, 2017

me too. It is an error in FlatList.

Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.

Check your code at App.js:8.
    in App (created by AwakeInDevApp)
    in RCTView (at View.js:113)
    in View (created by AwakeInDevApp)
    in AwakeInDevApp (at registerRootComponent.js:33)
    in ExpoRootComponent (at renderApplication.js:35)
    in RCTView (at View.js:113)
    in View (at AppContainer.js:100)
    in RCTView (at View.js:113)
    in View (at AppContainer.js:121)
    in AppContainer (at renderApplication.js:34)
import React from 'react'
import { FlatList, StyleSheet, Text, View } from 'react-native'

export default class App extends React.Component {
  render () {
    return (
      <View style={styles.container}>
        <FlatList
          data={[{key: 'a'}, {key: 'b'}]}
          renderItem={({item}) => <Text>{item.key}</Text>}
        />
      </View>
    )
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center'
  }
})
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error : 'ScrollView' has no propType for native prop ... - GitHub
Error : 'ScrollView' has no propType for native prop 'RCTScrollView.onScrollAnimationEnd' of native type ' BOOL' #679.
Read more >
React Native 0.48 - `scrollview has no proptype for native
I took a look over the docs for ListView, seems like its deprecated, but it should still work? FlatList generates the same error...
Read more >
[Solved] Native prop error - Expo SDK - Forums
I get this error after updating to react-native 0.48.1: `ScrollView` has no propType for native prop `RCTScrollView.onScrollAnimationEnd` of ...
Read more >
Packaging and PropTypes - Fullstack React
From within this prop , we can define an object which has the key of a prop as the name of the prop...
Read more >
scrollview has no proptype for native prop RCTScrollView ...
Coding example for the question scrollview has no proptype for native prop RCTScrollView.overScrollMode of native type string-React Native.
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