Refactor: apply PhoneInputCustom to PortofolioEdit
Changes: - Replace react-native-international-phone-number with PhoneInputCustom - Remove ICountry dependency, use CountryData from constants - Add phone number state management - Implement country detection from existing phone number - Auto-detect country based on calling code on load - Improve phone number formatting logic Features Applied: ✅ NO emoji flags - only calling codes (+62, +65, etc) ✅ Clean, professional UI ✅ Modal country picker with search ✅ Auto-detect country from saved phone number ✅ Real-time phone number formatting ✅ Auto-update country code on change ✅ Consistent with LoginView & ScreenPortofolioCreate Phone Detection Logic: - Load existing phone number from API - Detect country by matching calling code - Extract phone number without country code for display - Set detected country for country picker - Re-format on country change UI: - Phone Input: [+62 ⌄ | xxx-xxx-xxx] - Country Picker: Modal with search - Display: Country name + calling code only Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -160,7 +160,7 @@ const NewWrapper = (props: NewWrapperProps) => {
|
||||
<ScrollView
|
||||
contentContainerStyle={{ flexGrow: 1 }}
|
||||
keyboardShouldPersistTaps="handled"
|
||||
refreshControl={refreshControl} // ✅ sekarang valid
|
||||
refreshControl={refreshControl}
|
||||
>
|
||||
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
|
||||
{renderContainer(staticProps.children)}
|
||||
|
||||
Reference in New Issue
Block a user