halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.98k stars 291 forks source link

Issue Rendering the Sae Input Component #103

Closed aaronminkov closed 5 years ago

aaronminkov commented 5 years ago

After properly importing the react-native-textinput-effects module and including in my code, I run into the error:

TypeError: undefined is not an object (evaluating 'Component.propTypes')

Code: `import React, {Component} from 'react''; import { View } from 'react-native'; import { Sae } from 'react-native-textinput-effects';

export default class App extends React.Component { render() { return (

     )
 }

}`

What could be causing this issue?

xuananpham93 commented 4 years ago

Did you solve the issue?

pulpdood commented 4 years ago

Getting this issue as well

pulpdood commented 4 years ago

Try doing an npm install prop-types and it seems to be working now. Also make sure all required props are passed in