Skip to content

Commit 26aff66

Browse files
elenchofacebook-github-bot
authored andcommitted
fix(ios): removed default value (#46020)
Summary: Removed UIReturnKeyDefault as it caused bug when there wasn't any type. ## Changelog: [IOS] [REMOVED]: UIReturnKeyDefault <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #46020 Reviewed By: christophpurrer Differential Revision: D61277058 Pulled By: cipolleschi fbshipit-source-id: 18349c49b05d492a2c2ed5713af3ceb6d3728e70
1 parent 15c9961 commit 26aff66

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,6 @@ - (void)setCustomInputAccessoryViewWithNativeID:(NSString *)nativeID
654654
- (NSString *)returnKeyTypeToString:(UIReturnKeyType)returnKeyType
655655
{
656656
switch (returnKeyType) {
657-
case UIReturnKeyDefault:
658-
return @"Default";
659657
case UIReturnKeyGo:
660658
return @"Go";
661659
case UIReturnKeyNext:
@@ -683,7 +681,6 @@ - (void)initializeReturnKeyType
683681
{
684682
returnKeyTypesSet = [NSSet setWithObjects:@(UIReturnKeyDone),
685683
@(UIReturnKeyGo),
686-
@(UIReturnKeyDefault),
687684
@(UIReturnKeyNext),
688685
@(UIReturnKeySearch),
689686
@(UIReturnKeySend),

packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,6 @@ - (void)setTextAndSelection:(NSInteger)eventCount
503503
- (NSString *)returnKeyTypeToString:(UIReturnKeyType)returnKeyType
504504
{
505505
switch (returnKeyType) {
506-
case UIReturnKeyDefault:
507-
return @"Default";
508506
case UIReturnKeyGo:
509507
return @"Go";
510508
case UIReturnKeyNext:
@@ -532,7 +530,6 @@ - (void)initializeReturnKeyType
532530
{
533531
returnKeyTypesSet = [NSSet setWithObjects:@(UIReturnKeyDone),
534532
@(UIReturnKeyGo),
535-
@(UIReturnKeyDefault),
536533
@(UIReturnKeyNext),
537534
@(UIReturnKeySearch),
538535
@(UIReturnKeySend),

0 commit comments

Comments
 (0)