diff --git a/app/components/molecules/CharacterWithQuote/index.js b/app/components/molecules/CharacterWithQuote/index.js index 8c3a1db..e214833 100644 --- a/app/components/molecules/CharacterWithQuote/index.js +++ b/app/components/molecules/CharacterWithQuote/index.js @@ -1,6 +1,6 @@ import React from 'react'; import styled from 'styled-components/native'; -import { get } from 'lodash'; +import get from 'lodash/get'; import PropTypes from 'prop-types'; import { fonts } from '@themes'; import T from '@atoms/T'; diff --git a/app/components/organisms/SimpsonsLoveWednesday/tests/index.test.js b/app/components/organisms/SimpsonsLoveWednesday/tests/index.test.js index 50673a6..8e1156c 100644 --- a/app/components/organisms/SimpsonsLoveWednesday/tests/index.test.js +++ b/app/components/organisms/SimpsonsLoveWednesday/tests/index.test.js @@ -10,7 +10,7 @@ import React from 'react'; import { renderWithIntl } from '@utils/testUtils'; import { rerender } from '@testing-library/react-native'; import SimpsonsLoveWednesday from '../index'; -import { set } from 'lodash'; +import set from 'lodash/set'; describe('', () => { it('Should render and match the snapshot', () => { const baseElement = renderWithIntl(); diff --git a/app/i18n.js b/app/i18n.js index ab660b0..6e375c1 100644 --- a/app/i18n.js +++ b/app/i18n.js @@ -7,7 +7,7 @@ * script `extract-intl`, and must use CommonJS module syntax * You CANNOT use import/export in this file. */ -import { get } from 'lodash'; +import get from 'lodash/get'; const addLocaleData = require('react-intl').addLocaleData; //eslint-disable-line const enLocaleData = require('react-intl/locale-data/en'); diff --git a/app/scenes/ExampleScreen/saga.js b/app/scenes/ExampleScreen/saga.js index 302fb14..fa3e885 100644 --- a/app/scenes/ExampleScreen/saga.js +++ b/app/scenes/ExampleScreen/saga.js @@ -1,5 +1,5 @@ import { put, call, takeLatest } from 'redux-saga/effects'; -import { get } from 'lodash'; +import get from 'lodash/get'; import { getUser } from '@app/services/UserService'; import { exampleScreenActions, exampleScreenTypes } from './reducer'; diff --git a/app/scenes/RootScreen/reducer.js b/app/scenes/RootScreen/reducer.js index 4ba5cf2..702a595 100644 --- a/app/scenes/RootScreen/reducer.js +++ b/app/scenes/RootScreen/reducer.js @@ -1,7 +1,7 @@ import { createActions } from 'reduxsauce'; import { fromJS } from 'immutable'; import produce from 'immer'; -import { get } from 'lodash'; +import get from 'lodash/get'; export const { Types: rootScreenTypes, Creators: rootScreenActions diff --git a/app/scenes/RootScreen/tests/saga.test.js b/app/scenes/RootScreen/tests/saga.test.js index 3ba4481..f8ce417 100644 --- a/app/scenes/RootScreen/tests/saga.test.js +++ b/app/scenes/RootScreen/tests/saga.test.js @@ -9,7 +9,7 @@ import NavigationService from 'app/services/NavigationService'; import { timeout } from 'app/utils/testUtils'; import rootScreenSaga, { startup } from '../saga'; import { rootScreenTypes } from '../reducer'; -import { set } from 'lodash'; +import set from 'lodash/set'; describe('Tests for RootScreen sagas', () => { const setupTests = () => ({ generator: rootScreenSaga(), diff --git a/app/services/NavigationService.js b/app/services/NavigationService.js index 9665d84..467c8ac 100644 --- a/app/services/NavigationService.js +++ b/app/services/NavigationService.js @@ -1,5 +1,5 @@ import { NavigationActions, StackActions } from '@react-navigation/compat'; -import { set } from 'lodash'; +import set from 'lodash/set'; /** * The navigation is implemented as a service so that it can be used outside of components, for example in sagas. diff --git a/app/utils/apiUtils.js b/app/utils/apiUtils.js index 4a6cb41..b958ae3 100644 --- a/app/utils/apiUtils.js +++ b/app/utils/apiUtils.js @@ -1,6 +1,9 @@ import { create } from 'apisauce'; import mapKeysDeep from 'map-keys-deep'; -import { camelCase, snakeCase, set, get } from 'lodash'; +import camelCase from 'lodash/camelCase'; +import snakeCase from 'lodash/snakeCase'; +import set from 'lodash/set'; +import get from 'lodash/get'; import { Config } from '@app/config/index'; export const apiClients = { configApi: null, diff --git a/app/utils/testUtils.js b/app/utils/testUtils.js index bd2951f..cbb5c1d 100644 --- a/app/utils/testUtils.js +++ b/app/utils/testUtils.js @@ -5,7 +5,7 @@ import { Provider } from 'react-redux'; import createStore from 'app/rootReducer'; import { DEFAULT_LOCALE, translationMessages } from '@app/i18n'; import ConnectedLanguageProvider from '@atoms/LanguageProvider'; -import { get } from 'lodash'; +import get from 'lodash/get'; export const apiResponseGenerator = (ok, data) => ({ ok, data