keppelen / react-facebook-login

A Component React for Facebook Login
1.18k stars 406 forks source link

render props doesnt exist in version 4.1.1 #273

Closed soylemezali42 closed 2 years ago

soylemezali42 commented 4 years ago

I cant find render function for FacebookLogin component. Also, icon props doesn't work properly, when i add "fab fa-facebook-f" fontawesome icon class. The Component renders "fa fab fa-facebook-f" class on dom element.

VapiSoft commented 4 years ago

I also cannot compile it because of the render={renderProps =>

RakelO commented 4 years ago

@soylemezali42 use proper import

import FacebookLogin from 'react-facebook-login/dist/facebook-login-render-props'
CAIJIN1002 commented 3 years ago

@soylemezali42 use proper import

import FacebookLogin from 'react-facebook-login/dist/facebook-login-render-props'

In typescript, I tried this solution, but it shows

Could not find a declaration file for module 'react-facebook-login/dist/facebook-login-render-props'. '/Users/username/node_modules/react-facebook-login/dist/facebook-login-render-props.js' implicitly has an 'any' type.
  If the 'react-facebook-login' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-facebook-login`ts(7016)
arunsingh28 commented 2 years ago

same issue with me...

dexkode4 commented 2 years ago

same issue here

ThibaudMoretto commented 2 years ago

Same here

GO-Lorenzo commented 2 years ago

Same issue