Skip to content

Commit

Permalink
Fix default value for TextInput autoCapitalize
Browse files Browse the repository at this point in the history
Summary:
Changelog: [internal]

According to React Native docs, the default value for `autoCapitalize` is `sentences`.
Fabric's TextInput default value does not align with this.

[Source](https://reactnative.dev/docs/textinput#autocapitalize)

Reviewed By: JoshuaGross

Differential Revision: D23344479

fbshipit-source-id: f9e6f2aa6e1fbba2b08cb4aff23b842e49fa8c21
  • Loading branch information
sammy-SC authored and philippeauriach committed May 5, 2021
1 parent 69509fa commit a53ae0e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ class TextInputTraits final {

/*
* iOS & Android
* Default value: `None`.
* Default value: `Sentences`.
*/
AutocapitalizationType autocapitalizationType{AutocapitalizationType::None};
AutocapitalizationType autocapitalizationType{
AutocapitalizationType::Sentences};

/*
* Can be empty (`null` in JavaScript) which means `default`.
Expand Down

0 comments on commit a53ae0e

Please sign in to comment.