Skip to content

Commit 35be2d8

Browse files
cesarm16xcarpentier
authored andcommitted
Update CountryPicker.js to resolve issue #134 (#135)
somehow those imports doesn't work on production bundles so i added ".json"
1 parent 94c402c commit 35be2d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CountryPicker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020

2121
import Fuse from 'fuse.js'
2222

23-
import cca2List from '../data/cca2'
23+
import cca2List from '../data/cca2.json'
2424
import { getHeightPercent } from './ratio'
2525
import CloseButton from './CloseButton'
2626
import countryPickerStyles from './CountryPicker.style'
@@ -43,10 +43,10 @@ const setCountries = flagType => {
4343
}
4444

4545
if (isEmojiable) {
46-
countries = require('../data/countries-emoji')
46+
countries = require('../data/countries-emoji.json')
4747
Emoji = require('./emoji').default
4848
} else {
49-
countries = require('../data/countries')
49+
countries = require('../data/countries.json')
5050
Emoji = <View />
5151
}
5252
}

0 commit comments

Comments
 (0)