Hey Cem,
It's certainly possible though not as easy as we'd like. :-)
The basic approach would be to do a normal native login (e.g. using the iOS Facebook SDK) and then pass the resulting oauth token to
ref.authWithOAuthToken().
If you're interested in Facebook specifically, this
blog post walks you through using facebook login in a react-native app. So I'd follow through that procedure. In their example, they have:
FacebookLoginManager.newSession((error, info) => {
if (error) {
this.setState({result: error});
} else {
this.setState({result: info});
}
});
If I'm reading the code right, I think the info object will contain a .tokenString property which you would then pass to
ref.authWithOAuthToken() to authenticate to Firebase using that token.
Sorry I don't have a complete example to share, but hopefully this gets you going down the right track.
Holler if you have questions or get something working!
Best regards,
-Michael