Open feggaa opened 2 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)} />
this changes for remove warning :
Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.