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

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.)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 21
  • Comments: 26

Commits related to this issue

Most upvoted comments

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! 😃

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'
  }
})

Same here. I created a new fresh app using create-react-native-app. The following dependencies have been installed

"dependencies": {
  "expo": "^20.0.0",
  "react": "16.0.0-alpha.12",
  "react-native": "^0.47.0"
}

I started getting that error, infinitely, causing the browser consume a lot of memory.

I’ve tried updating to 0.48.4 with this command react-native-git-upgrade 0.48.4, it installs the react native v0.48 but it doesn’t update package.json and/or app.json.

Finally, I end up with the same solution as @nokwin:

"dependencies": {
  "expo": "21.0.2",
  "react": "16.0.0-alpha.12",
  "react-native": "0.48.4"
}

And make sure you have the following sdkVersion in app.json

"expo": {
  "sdkVersion": "21.0.0"
}

I have this same error and I don’t use expo. Anyone found a solution?

Feels like this has just decided to break on me this morning, right before a deadline. Any help, please??

This is happening while using Expo and create-react-native-app

Hmm thats not solving it for me, anybody else stuck?

hm I actually asked you because I only got this issue after updating to xcode 9, so if you had not updated yet, that might be a sign that your issue is a different one, and that’s why this solution is not working.