Closed 0181532686cf4a31163be0bf3e6bb6732bf closed 7 years ago
If you take a look at the src/index.jsx you will see that the default export - the t in your case - is bootstrap toggle.
import BootstrapToggle from './react-bootstrap-toggle';
import Bootstrap2Toggle from './react-bootstrap2-toggle';
export default BootstrapToggle;
export { Bootstrap2Toggle };
So this is expected.
I'm using require
in my code so I had to do this:
var Toggle = require('react-bootstrap-toggle').default;
Thank you!
Only Bootstrap2Toggle: