We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I need to pass a function on the props, I have this component:
`import React, {Component} from 'react'; import { View } from 'react-native'; import {FBLogin, FBLoginManager} from 'react-native-facebook-login'; const Loginfb = (props) => ( <FBLogin style={{marginBottom: 10}} ref={props.ref} permissions={["email", "user_friends"]} loginBehavior={FBLoginManager.LoginBehaviors.SystemAccount} onLogin={props.login}
);
export default Loginfb;`
when props.ref and props.login are functions whit data. In my container component i have this:
`import React, {Component} from 'react'; import {View} from 'react-native'; import {FBLogin, FBLoginManager} from 'react-native-facebook-login'; import Loginfb from '../components/fblogin'; class Inicio extends Component { constructor(props) { super(props); this.state = { user: null, };
}
Ref = (fbLogin) => { this.fbLogin = fbLogin
login = (data) => { console.log("Logged in!"); console.log(data); this.setState({user: data.credentials});
render() { return ( <View <Loginfb ref={this.ref} onLogin={this.login}/> </View> ); } } export default Inicio;`
i cant understand my error : "this.props[event] is not a function"
Please Help
The text was updated successfully, but these errors were encountered:
Unfortunately this issue is not React Native specific. I'd suggest you to create new a question on StackOverflow with proper tags and check the issues on react-native-facebook-login repo if there's something similar.
Sorry, something went wrong.
No branches or pull requests
Hello,
I need to pass a function on the props, I have this component:
);
when props.ref and props.login are functions whit data. In my container component i have this:
}
}
}
i cant understand my error : "this.props[event] is not a function"
Please Help
The text was updated successfully, but these errors were encountered: