Open feggaa opened 5 months ago
this changes for remove warning :
Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
how to change the to default parameter , <CountryPicker countryCode={countryCode || 'IN'} withFilter withFlag withCountryNameButton withAlphaFilter onSelect={onSelect} theme={{ backgroundColor: '#108554', onBackgroundTextColor: '#fff', fontFamily: 'Inter-Regular', }} visible={isCountryPickerVisible} onClose={() => setCountryPickerVisible(false)} />
@xcarpentier please accept this merge request, we're all facing this warning. Thank you in advance!
this changes for remove warning :
Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.