ThakurBallary/react-native-radio-buttons-group

Don't import the whole lodash library

Closed this issue · 1 comments

You are importing the whole lodash library for a single function. This is a terrible pattern and will bloat the bundle, since there is no tree shaking at all.

If you just need isEqual, please use it like this:

npm install --save lodash.isequal
# or
yarn add lodash.isequal

and import

import isEqual from 'lodash.isequal';

@hirbod thanks for writing. Release v2.2.8 with the changes you mentioned above.