Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.59 stable #24661

Closed
wants to merge 118 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
5e1504b
Update CLI dependency
grabbou Feb 13, 2019
06bc4b5
Explicitly set path to React Native for development
grabbou Feb 13, 2019
a252aee
Bump CLI dependency
grabbou Feb 13, 2019
9774584
Revert "add basic signature in template (#22665)"
grabbou Feb 13, 2019
69e5c2d
[0.59.0-rc.0] Bump version numbers
grabbou Feb 13, 2019
9f96606
Revert "[0.59.0-rc.0] Bump version numbers"
grabbou Feb 13, 2019
1f09967
Fix React Native calling private CLI APIs
grabbou Feb 13, 2019
d059e74
[0.59.0-rc.0] Bump version numbers
grabbou Feb 13, 2019
a962cb6
Revert "[0.59.0-rc.0] Bump version numbers"
grabbou Feb 13, 2019
d37ffc3
Fix React Native calling CLI wo location
grabbou Feb 13, 2019
818f6bb
bump targetSdkVersion to 28 (#23431)
dulmandakh Feb 13, 2019
e6d8ac8
@Nonnull annotation for ReactPackage (#23415)
dulmandakh Feb 13, 2019
724d83a
improve Android Network Security config (#23429)
dulmandakh Feb 13, 2019
7f5e044
Fix Android Gradle build
grabbou Feb 13, 2019
aca5f05
Set ReactNativePath while building RNTester
grabbou Feb 13, 2019
d47aa28
[0.59.0-rc.0] Bump version numbers
grabbou Feb 13, 2019
8b75677
Revert "[0.59.0-rc.0] Bump version numbers"
grabbou Feb 13, 2019
517c165
[0.59.0-rc.0] Bump version numbers
grabbou Feb 13, 2019
cef5ad6
Revert "[0.59.0-rc.0] Bump version numbers"
hramos Feb 13, 2019
b2f5e45
Revert to prior Circle CI Android config
hramos Feb 13, 2019
af6de4e
[0.59.0-rc.0] Bump version numbers
hramos Feb 13, 2019
2bc055a
Revert "[0.59.0-rc.0] Bump version numbers"
hramos Feb 13, 2019
51b66c0
Do not use cache during release deploy
hramos Feb 13, 2019
5a31469
[0.59.0-rc.0] Bump version numbers
hramos Feb 13, 2019
11c12d5
Resolves #23390: cxxreact, jsi and jsiexecutor depends on DoubleConve…
alexruperez Feb 13, 2019
4cb1646
fix: bring local-cli back
grabbou Feb 14, 2019
199de26
[0.59.0-rc.1] Bump version numbers
grabbou Feb 14, 2019
dcb7e5c
Auto-accept licenses and unblock CI
hramos Feb 14, 2019
ce046f0
Individually accept licenses
hramos Feb 14, 2019
c532dfd
Use current user in cache key
hramos Feb 14, 2019
ad279ee
Fix id command
hramos Feb 14, 2019
85a2e71
Revert "Fix id command"
hramos Feb 14, 2019
99ebebd
Revert "Use current user in cache key"
hramos Feb 14, 2019
560a484
Revert "[0.59.0-rc.1] Bump version numbers"
grabbou Feb 15, 2019
01d5a3b
react_native_config available to all Android versions (#23470)
dulmandakh Feb 15, 2019
51a7ad5
bump android plugin to 3.3.1 (#23473)
dulmandakh Feb 15, 2019
72f44a2
Merge branch '0.59-stable' of github.com:facebook/react-native into 0…
grabbou Feb 15, 2019
171c24d
Invalidate Yarn cache
grabbou Feb 15, 2019
a7906b0
Invalidate Buck cache
grabbou Feb 15, 2019
7df6416
Invalidate Gradle cache
grabbou Feb 15, 2019
1768655
[0.59.0-rc.1] Bump version numbers
grabbou Feb 15, 2019
2f33b50
Don't attempt to load RCTDevLoadingView lazily
fkgozali Feb 15, 2019
179d490
Add autoComplete prop (#21575)
Feb 15, 2019
415cc25
Add `folly_compiler_flags` to Core subspec (#23488)
Salakar Feb 17, 2019
40603bc
[0.59.0-rc.2] Bump version numbers
grabbou Feb 18, 2019
dff3f60
Map TextInput textContentType strings to Objective-C constants (#22611)
levibuzolic Feb 20, 2019
56fc630
SYSTEM_ALERT_WINDOW only in debug builds (#23504)
dulmandakh Feb 18, 2019
52e5136
ReactTextView extends AppCompatTextView (#23321)
dulmandakh Feb 21, 2019
f909701
Don't reconnect inspector if connection refused (#22625)
msand Feb 21, 2019
fbf039b
add nullable annotations to some ViewManager methods (#23610)
dulmandakh Feb 23, 2019
fee5031
Fix IllegalArgumentException when creating CookieManager
mdvacca Feb 22, 2019
4cad737
Prevent okhttp from adding ;charset=utf8 to ContentType Header (#23580)
nhunzaker Feb 22, 2019
d7c4c37
Use existing character set in POST body when possible (#23603)
nhunzaker Feb 23, 2019
2b7346f
Fix two bugs with Location when not using ACCESS_FINE_LOCATION (#10291)
mikelambert Feb 21, 2019
8e5eb63
add talkback navigation support for links and header (#22447)
Feb 25, 2019
c1392c2
Toggle secureTextEntry cursor spacing (#23524)
ericlewis Feb 22, 2019
52cdb7c
React sync for revisions f24a0da...8e25ed2
hramos Feb 27, 2019
9cb4d3f
[0.59.0-rc.3] Bump version numbers
grabbou Feb 27, 2019
370947d
Bump Jest version
grabbou Mar 11, 2019
caba1cb
Fix crash when calling substring() on a string containing emoji. (#23…
ericlewis Mar 1, 2019
8d95e73
Text: Implement textAlign justify for android O+ (#22477)
sunnylqm Mar 5, 2019
456a984
Fix image wrong scale factor when load image from file system (#23446)
zhongwuzw Feb 15, 2019
f0bc491
Remove duplicated Yoga compile sources to prevent "duplicate symbols"…
tomduncalf Mar 11, 2019
ffa6d29
Disable Snapshot tests for Text component on iOS
grabbou Mar 11, 2019
f6ca4d0
Add prop to configure `importantForAutofill`. (#22763)
jainkuniya Feb 17, 2019
9f5946b
Fix DatePicker tests
grabbou Mar 12, 2019
fa190ba
Fix flow error
grabbou Mar 12, 2019
7c73f2b
[0.59.0] Bump version numbers
grabbou Mar 12, 2019
000119d
Fix build error warning of Text module (#23586)
zhongwuzw Feb 22, 2019
4b996da
[Android] Fixed template build gradle error on x86_64
grabbou Mar 13, 2019
60cf18f
[0.59.1] Bump version numbers
grabbou Mar 14, 2019
3f1d2b0
Turn off Metro JS Deltas by default for Android
Mar 16, 2019
7263a77
Do not use autofill methods on Android APIs older than Oreo (26)
hramos Mar 15, 2019
6aca514
Add fix for refresh control state's race condition. (#21763)
rostislav-simonik Feb 15, 2019
a38dc73
Revert of [D13948951]Apply the fix for CJK languages on single-line t…
Feb 22, 2019
fab86ee
use Conscrypt as security provider if available (#23984)
dulmandakh Mar 18, 2019
699fad7
Fixed regression in SectionList caused by #21577 not being able to sc…
danilobuerger Mar 19, 2019
f6516d2
Fix scrollview over bounds of content size (#23427)
zhongwuzw Feb 21, 2019
392b084
fix: Start Metro packager from project root (#24070)
MatthieuLemoine Mar 21, 2019
4260907
Pass through track color values for true/false to native component
Feb 12, 2019
becc154
fix switch trackColor on Android. fixes #23962 (#23977)
dulmandakh Mar 16, 2019
3b06815
allow HTTP in debug builds (#24066)
dulmandakh Mar 20, 2019
0e8680f
Fixed test_ios Switch test failed (#24009)
zhongwuzw Mar 18, 2019
43d56c1
Update reference images for test_ios
grabbou Mar 25, 2019
ad9eb8e
Re-enable Text tests on iOS
grabbou Mar 25, 2019
9bb5c32
[0.59.2] Bump version numbers
grabbou Mar 25, 2019
871290f
improve RTL (#24069)
dulmandakh Mar 20, 2019
d7e7b3e
Fix #24053 prevent division by zero error in VirtualizedList debug ov…
Mar 20, 2019
e4f9ee9
OkHttp is more strict than other http libraries. (#21231)
dryganets Mar 21, 2019
bdf809e
Fix PerfMonitor appearance when reloading JS (#24073)
usrbowe Mar 21, 2019
1a35bc5
Fix TextInput maxLength when insert characters at begin (#23472)
zhongwuzw Mar 12, 2019
581dc3e
Fix bat file (#23967)
AliAzizi Mar 18, 2019
775553b
Update projectRoot in launchPackager.bat (#24115)
nazreinkaram Mar 25, 2019
13cb5a9
Fix IllegalStateException when tapping next on Android Keyboard
mdvacca Mar 25, 2019
e94d344
Fix behaviour of Header, Footer and Empty List components in Virtuali…
michalchudziak Mar 27, 2019
df7ea67
Use constructor attribute instead of +load objc method (#24155)
zienag Apr 1, 2019
3b91a7e
[0.59.3] Bump version numbers
kelset Apr 1, 2019
836a8e0
Fix universal links not working in iOS 12 / Xcode 10 (#22764)
iljadaderko Mar 26, 2019
05723ed
fixed touchable longpress (#24238)
Kida007 Apr 3, 2019
0167cf2
Fix triangle views on iOS (#23402)
zhongwuzw Feb 13, 2019
d6bca97
Prevent crash when setting underlineColorAndroid (#24183)
sunnylqm Apr 2, 2019
27872cf
Remove react-clone-referenced-element dependency (#23933)
ide Mar 15, 2019
dc25f20
chore: update Jest preset to align with Jest 24 (#24062)
thymikee Mar 20, 2019
17292c9
Make Jest transform @react-native-community packages by default (#24294)
thymikee Apr 3, 2019
e3ac329
Add scrollToOverflowEnabled prop to ScrollView (#24296)
mysport12 Apr 3, 2019
dc29f29
Revert "Remove react-clone-referenced-element dependency (#23933)"
Kida007 Apr 3, 2019
d60a2fb
[0.59.4] Bump version numbers
grabbou Apr 8, 2019
effb028
Fix #23755 ("RCTImagePickerManager requires main queue setup" warning…
Apr 4, 2019
b8aac02
Fix: mostRecentEventCount is not updated. (#17990)
jainkuniya Feb 28, 2019
72b4cc0
Calculate Correct Window Dimensions for iOS (#19932)
rdonnelly Apr 10, 2019
d7bd6cc
JSStackTrace -> Ensure lineNumber exists before consuming (#24399)
Salakar Apr 11, 2019
54af5b1
Remove wrapper around ListEmptyComponent (#24339)
Apr 8, 2019
f5a3180
Enforced thread safety on UIImplementation methods that mutate the sh…
grabbou Apr 17, 2019
822bdd4
[0.59.5] Bump version numbers
grabbou Apr 17, 2019
5f00f4c
React sync
elicwhite Apr 17, 2019
b1c5937
Downgrade Prettier
grabbou Apr 18, 2019
130a224
Update lock
grabbou Apr 18, 2019
df4e67f
[0.59.6] Bump version numbers
grabbou Apr 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 101 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ aliases:
# Cache Management
- &restore-yarn-cache
keys:
- v1-yarn-cache-{{ arch }}-{{ checksum "package.json" }}
- v1-yarn-cache-{{ arch }}
- v2-yarn-cache-{{ arch }}-{{ checksum "package.json" }}
- v2-yarn-cache-{{ arch }}
- &save-yarn-cache
paths:
- ~/.cache/yarn
key: v1-yarn-cache-{{ arch }}-{{ checksum "package.json" }}
key: v2-yarn-cache-{{ arch }}-{{ checksum "package.json" }}

- &restore-node-modules
keys:
Expand All @@ -26,28 +26,44 @@ aliases:
- node_modules
key: v1-analysis-dependencies-{{ arch }}-{{ checksum "package.json" }}{{ checksum "bots/package.json" }}

- &restore-cache-android-packages
keys:
- v1-android-sdkmanager-packages-api-28-alpha-{{ checksum "scripts/.tests.env" }}
- &save-cache-android-packages
paths:
- /opt/android/sdk
key: v1-android-sdkmanager-packages-api-28-alpha-{{ checksum "scripts/.tests.env" }}

- &restore-cache-gradle
keys:
- v1-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "ReactAndroid/build.gradle" }}
- v2-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "ReactAndroid/build.gradle" }}
# Fallback in case checksum fails
- v1-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-
- v1-gradle-{{ .Branch }}-
- v2-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-
- v2-gradle-{{ .Branch }}-
# Fallback in case this is a first-time run on a fork
- v1-gradle-master-
- v2-gradle-master-
- &save-cache-gradle
paths:
- ~/.gradle
key: v1-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "ReactAndroid/build.gradle" }}
key: v2-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "ReactAndroid/build.gradle" }}

- &restore-cache-ndk
keys:
- v3-android-ndk-r17c-{{ checksum "scripts/android-setup.sh" }}
- &save-cache-ndk
paths:
- /opt/ndk
key: v3-android-ndk-r17c-{{ checksum "scripts/android-setup.sh" }}

- &restore-cache-downloads-buck
keys:
- v3-buck-v2019.01.10.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}}
- v3-buck-v2019.01.10.01-
- v4-buck-v2019.01.10.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}}
- v4-buck-v2019.01.10.01-
- &save-cache-downloads-buck
paths:
- ~/buck
- ~/okbuck
key: v3-buck-v2019.01.10.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}
key: v4-buck-v2019.01.10.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}

- &restore-cache-watchman
keys:
Expand All @@ -59,14 +75,14 @@ aliases:

- &restore-cache-downloads-gradle
keys:
- v1-gradle-{{ checksum "ReactAndroid/build.gradle" }}-{{ checksum "scripts/circleci/gradle_download_deps.sh" }}
- v1-gradle-
- v2-gradle-{{ checksum "ReactAndroid/build.gradle" }}-{{ checksum "scripts/circleci/gradle_download_deps.sh" }}
- v2-gradle-
- &save-cache-downloads-gradle
paths:
- ~/.gradle
- ReactAndroid/build/downloads
- ReactAndroid/build/third-party-ndk
key: v1-gradle-{{ checksum "ReactAndroid/build.gradle" }}-{{ checksum "scripts/circleci/gradle_download_deps.sh" }}
key: v2-gradle-{{ checksum "ReactAndroid/build.gradle" }}-{{ checksum "scripts/circleci/gradle_download_deps.sh" }}

- &restore-cache-homebrew
keys:
Expand Down Expand Up @@ -99,6 +115,11 @@ aliases:
- /.*-stable/
- gh-pages

# Dependency Management
- &install-ndk
name: Install Android NDK
command: source scripts/android-setup.sh && getAndroidNDK

- &yarn
name: Run Yarn
command: |
Expand All @@ -108,16 +129,51 @@ aliases:
yarn install --non-interactive --cache-folder ~/.cache/yarn
fi

- &install-yarn
name: Install Yarn
command: |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

- &install-buck
name: Install BUCK
command: |
if [[ ! -e ~/buck ]]; then
git clone https://github.com/facebook/buck.git ~/buck --branch v2019.01.10.01 --depth=1
fi
cd ~/buck && ant
buck --version
# Install related tooling
if [[ ! -e ~/okbuck ]]; then
git clone https://github.com/uber/okbuck.git ~/okbuck --depth=1
fi
mkdir -p ~/react-native/tooling/junit
cp -R ~/okbuck/tooling/junit/* ~/react-native/tooling/junit/.

- &create-ndk-directory
name: Create Android NDK Directory
command: |
if [[ ! -e /opt/ndk ]]; then
sudo mkdir /opt/ndk
fi
sudo chown ${USER:=$(/usr/bin/id -run)}:$USER /opt/ndk

# CircleCI does not support interpolating env variables in the environment
# https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables
- &configure-android-path
name: Configure Environment Variables
command: |
echo 'export PATH=${ANDROID_NDK}:~/buck/bin:$PATH' >> $BASH_ENV
source $BASH_ENV
- &install-android-packages
name: Install Android SDK Packages
command: source scripts/android-setup.sh && getAndroidPackages

- &install-android-build-dependencies
name: Install Android Build Dependencies
command: ./scripts/circleci/apt-get-android-deps.sh

- &validate-android-sdk
name: Validate Android SDK Install
command: ./scripts/validate-android-sdk.sh
Expand Down Expand Up @@ -187,7 +243,7 @@ aliases:

- &build-js-bundle
name: Build JavaScript Bundle
command: node cli.js bundle --max-workers 2 --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
command: node cli.js bundle --max-workers 2 --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js --reactNativePath .

- &compile-native-libs
name: Compile Native Libs for Unit and Integration Tests
Expand All @@ -208,7 +264,7 @@ aliases:

- &build-android-rntester-app
name: Build Android RNTester App
command: ./gradlew RNTester:android:app:assembleRelease
command: ./gradlew RNTester:android:app:assembleRelease -Pjobs=$BUILD_THREADS

- &collect-android-test-results
name: Collect Test Results
Expand Down Expand Up @@ -283,13 +339,14 @@ js_defaults: &js_defaults
android_defaults: &android_defaults
<<: *defaults
docker:
- image: reactnativecommunity/react-native-android
- image: circleci/android:api-28-node8-alpha
resource_class: "large"
environment:
- TERM: "dumb"
- ADB_INSTALL_TIMEOUT: 10
- _JAVA_OPTIONS: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
- GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-XX:+HeapDumpOnOutOfMemoryError"'
- ANDROID_NDK: '/opt/ndk/android-ndk-r17c'
- BUILD_THREADS: 2

macos_defaults: &macos_defaults
Expand Down Expand Up @@ -415,6 +472,15 @@ jobs:
- attach_workspace:
at: ~/react-native

# Configure Android SDK and related dependencies
- run: *configure-android-path
# Android build deps install from the network faster than cache
- run: *install-android-build-dependencies

- restore-cache: *restore-cache-android-packages
- run: *install-android-packages
- save-cache: *save-cache-android-packages

# Validate Android SDK installation and packages
- run: *validate-android-sdk

Expand All @@ -424,6 +490,12 @@ jobs:

# Keep configuring Android dependencies while AVD boots up

# Install Android NDK
- run: *create-ndk-directory
- restore-cache: *restore-cache-ndk
- run: *install-ndk
- save-cache: *save-cache-ndk

# Install Buck
- restore-cache: *restore-cache-downloads-buck
- run: *install-buck
Expand Down Expand Up @@ -547,21 +619,26 @@ jobs:
<<: *android_defaults
steps:
- checkout

- restore-cache: *restore-yarn-cache
- run: *yarn

# Configure Android SDK and related dependencies
- run: *configure-android-path
- run: *install-android-build-dependencies

- run: *install-android-packages

# Install Android NDK
- run: *create-ndk-directory
- restore-cache: *restore-cache-ndk
- run: *install-ndk

# Fetch dependencies using Buck
- restore-cache: *restore-cache-downloads-buck
- run: *install-buck
- run: *download-dependencies-buck

# Fetch dependencies using Gradle
- restore-cache: *restore-cache-downloads-gradle
- run: *download-dependencies-gradle

- restore-cache: *restore-yarn-cache
- run: *yarn

- run:
name: Authenticate with npm
command: echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ watchman shutdown-server

# integration tests
# build JS bundle for instrumentation tests
node cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
node cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js --reactNativePath .

# build test APK
# shellcheck disable=SC1091
Expand Down
7 changes: 6 additions & 1 deletion Libraries/CameraRoll/RCTImagePickerManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,14 @@ - (id)init
return self;
}

+ (BOOL)requiresMainQueueSetup
{
return NO;
}

- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self name:@"AVCaptureDeviceDidStartRunningNotification" object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self name:@"AVCaptureDeviceDidStartRunningNotification" object:nil];
}

- (dispatch_queue_t)methodQueue
Expand Down
6 changes: 6 additions & 0 deletions Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ type IOSProps = $ReadOnly<{|
* @platform ios
*/
scrollIndicatorInsets?: ?EdgeInsetsProp,
/**
* When true, the scroll view can be programmatically scrolled beyond its
* content size. The default value is false.
* @platform ios
*/
scrollToOverflowEnabled?: ?boolean,
/**
* When true, the scroll view scrolls to top when the status bar is tapped.
* The default value is true.
Expand Down
2 changes: 2 additions & 0 deletions Libraries/Components/Switch/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ class Switch extends React.Component<Props> {
on: value === true,
style,
thumbTintColor: _thumbColor,
trackColorForFalse: _trackColorForFalse,
trackColorForTrue: _trackColorForTrue,
trackTintColor:
value === true ? _trackColorForTrue : _trackColorForFalse,
}: NativeAndroidProps)
Expand Down
61 changes: 61 additions & 0 deletions Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,35 @@ type IOSProps = $ReadOnly<{|
|}>;

type AndroidProps = $ReadOnly<{|
autoCompleteType?: ?(
| 'cc-csc'
| 'cc-exp'
| 'cc-exp-month'
| 'cc-exp-year'
| 'cc-number'
| 'email'
| 'name'
| 'password'
| 'postal-code'
| 'street-address'
| 'tel'
| 'username'
| 'off'
),
returnKeyLabel?: ?string,
numberOfLines?: ?number,
disableFullscreenUI?: ?boolean,
textBreakStrategy?: ?('simple' | 'highQuality' | 'balanced'),
underlineColorAndroid?: ?ColorValue,
inlineImageLeft?: ?string,
inlineImagePadding?: ?number,
importantForAutofill?: ?(
| 'auto'
| 'no'
| 'noExcludeDescendants'
| 'yes'
| 'yesExcludeDescendants'
),
|}>;

type Props = $ReadOnly<{|
Expand Down Expand Up @@ -413,6 +435,45 @@ const TextInput = createReactClass({
'words',
'characters',
]),
/**
* Determines which content to suggest on auto complete, e.g.`username`.
* To disable auto complete, use `off`.
*
* *Android Only*
*
* The following values work on Android only:
*
* - `username`
* - `password`
* - `email`
* - `name`
* - `tel`
* - `street-address`
* - `postal-code`
* - `cc-number`
* - `cc-csc`
* - `cc-exp`
* - `cc-exp-month`
* - `cc-exp-year`
* - `off`
*
* @platform android
*/
autoCompleteType: PropTypes.oneOf([
'cc-csc',
'cc-exp',
'cc-exp-month',
'cc-exp-year',
'cc-number',
'email',
'name',
'password',
'postal-code',
'street-address',
'tel',
'username',
'off',
]),
/**
* If `false`, disables auto-correct. The default value is `true`.
*/
Expand Down
Loading