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

Merge latest upstream RN 0.71 changes #1868

Merged
merged 48 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a0a2301
[LOCAL] update podlock post release to fix CI
kelset Apr 11, 2023
0d3600b
Fix measurement of uncontrolled TextInput after edit
NickGerleman Feb 9, 2023
8ad6496
Minimize EditText Spans 1/9: Fix precedence (#36543)
NickGerleman Mar 24, 2023
e7122df
Minimize EditText Spans 2/9: Make stripAttributeEquivalentSpans gener…
NickGerleman Mar 24, 2023
d145957
Minimize EditText Spans 3/9: ReactBackgroundColorSpan (#36547)
NickGerleman Mar 24, 2023
644a3da
Minimize EditText Spans 4/9: ReactForegroundColorSpan (#36545)
NickGerleman Mar 24, 2023
ba4c2f5
Minimize EditText Spans 5/9: Strikethrough and Underline (#36544)
NickGerleman Mar 24, 2023
e89d23c
Minimize EditText Spans 6/9: letterSpacing (#36548)
NickGerleman Mar 24, 2023
2e2ce8a
Minimize EditText Spans 7/9: Avoid temp list (#36576)
NickGerleman Mar 24, 2023
77bd902
Minimize EditText Spans 8/9: CustomStyleSpan (#36577)
NickGerleman Mar 24, 2023
181bd38
Mimimize EditText Spans 9/9: Remove addSpansForMeasurement() (#36575)
NickGerleman Mar 25, 2023
256e25c
Merge pull request #36874 from facebook/kelset/071-backport-textinput…
kelset Apr 17, 2023
9be2959
Use RN Build Utils for Building Hermes Artifacts
dmytrorykun Mar 15, 2023
843d57e
Fix TextView alignment being reset on state updates
javache Feb 22, 2023
6115ce5
[0.71.7] Bump version numbers
Apr 19, 2023
1fbfd8c
Do not send extra onChangeText even wnen instantianting multiline Tex…
dmytrorykun Apr 18, 2023
0dda452
Read Maven group from GROUP property (#37204)
douglowder May 5, 2023
fb76526
bumped packages versions
kelset May 10, 2023
4bf4c47
[LOCAL] bump RNGP to 0.71.18
kelset May 10, 2023
a93778c
[LOCAL] update podlock
kelset May 10, 2023
d2a8739
[0.71.8] Bump version numbers
May 10, 2023
b8040b9
fix(types): cross platform autoComplete for TextInput (#36931)
iRoachie Apr 18, 2023
b245919
Allow string `transform` style in TypeScript (#37569)
NickGerleman May 25, 2023
9762016
fix: [gradle-plugin] 3rd party lib dependency substitution (#37445)
douglowder May 17, 2023
fa33e76
fix: fix virtualizedList scrollToEnd for 0 items (#36067)
Andarius Feb 6, 2023
a582ca5
[LOCAL] bump hermes version post release
kelset Jun 6, 2023
3f61b5f
Make CircleCI caches for hermesc be version dependent (#37452)
cipolleschi May 23, 2023
ed9ef98
[0.71.9] Bump version numbers
Jun 7, 2023
1564d4d
bumped packages versions
kelset Jun 7, 2023
3be3a7d
bump RNGP to 0.71.19
kelset Jun 7, 2023
4e92d67
[0.71.10] Bump version numbers
Jun 7, 2023
dfdc97a
[LOCAL] update podlock to fix CI
kelset Jun 8, 2023
fd8a19d
Revert "fix: border width top/bottom not matching the border radius (…
kelset Jun 14, 2023
c11e0f5
Fix invalid context cast in ReactRootView (#36121)
aleqsio Feb 13, 2023
f2c0514
Prevent crash in runAnimationStep on OnePlus and Oppo devices (#37487)
hsource May 23, 2023
91b172d
Use `Content-Location` header in bundle response as JS source URL (#3…
robhogan May 23, 2023
5bd1a42
[LOCAL] Make 0.70 compatible with Xcode 15 (thanks to @AlexanderEgger…
kelset Jun 14, 2023
69804c7
[LOCAL] Bump CLI to 10.2.4 and Metro to 0.73.10
kelset Jun 14, 2023
da5ed0d
Add web compat unit tests and fixes (#35316)
necolas Nov 17, 2022
42a0888
resolve some merge conflicts
AlexanderEggers Jun 14, 2023
b7644aa
fix tests
AlexanderEggers Jun 14, 2023
7ea7d94
[0.71.11] Bump version numbers
Jun 14, 2023
2b06a75
Merge pull request #37876 from AlexanderEggers/chore/cherry-pick_logi…
NickGerleman Jun 15, 2023
9ce27c7
[LOCAL] update podlock for CI
kelset Jun 20, 2023
fc1abe1
fix(ios): fix `pod install --project-directory=ios` failing (#37993)
tido64 Jun 23, 2023
f59db07
Prevent LogBox from crashing on long messages (#38005)
motiz88 Jun 22, 2023
49d16d5
[0.71.12] Bump version numbers
Jul 4, 2023
a7567de
Merge branch 'meta-0.71-stable' into more-71
Saadnajmi Jul 5, 2023
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
38 changes: 30 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ references:
hermes_workspace_cache_key: &hermes_workspace_cache_key v4-hermes-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/hermes/hermesversion" }}
hermes_workspace_debug_cache_key: &hermes_workspace_debug_cache_key v2-hermes-{{ .Environment.CIRCLE_JOB }}-debug-{{ checksum "/tmp/hermes/hermesversion" }}-{{ checksum "/tmp/react-native-version" }}
hermes_workspace_release_cache_key: &hermes_workspace_release_cache_key v2-hermes-{{ .Environment.CIRCLE_JOB }}-release-{{ checksum "/tmp/hermes/hermesversion" }}-{{ checksum "/tmp/react-native-version" }}
hermes_windows_cache_key: &hermes_windows_cache_key v3-hermes-{{ .Environment.CIRCLE_JOB }}-{{ checksum "tmp/hermes/hermesversion" }}
hermes_linux_cache_key: &hermes_linux_cache_key v1-hermes-{{ .Environment.CIRCLE_JOB }}-linux-{{ checksum "/tmp/hermes/hermesversion" }}-{{ checksum "/tmp/react-native-version" }}
hermes_windows_cache_key: &hermes_windows_cache_key v2-hermes-{{ .Environment.CIRCLE_JOB }}-windows-{{ checksum "/Users/circleci/project/tmp/hermes/hermesversion" }}-{{ checksum "/tmp/react-native-version" }}
hermes_tarball_debug_cache_key: &hermes_tarball_debug_cache_key v4-hermes-tarball-debug-{{ checksum "/tmp/hermes/hermesversion" }}-{{ checksum "/tmp/react-native-version" }}
hermes_tarball_release_cache_key: &hermes_tarball_release_cache_key v3-hermes-tarball-release-{{ checksum "/tmp/hermes/hermesversion" }}-{{ checksum "/tmp/react-native-version" }}
pods_cache_key: &pods_cache_key v8-pods-{{ .Environment.CIRCLE_JOB }}-{{ checksum "packages/rn-tester/Podfile.lock.bak" }}-{{ checksum "packages/rn-tester/Podfile" }}
Expand Down Expand Up @@ -278,11 +279,24 @@ commands:
- run:
name: Get React Native version
command: |
VERSION=$( grep '"version"' package.json | cut -d '"' -f 4 | head -1)
VERSION=$(cat package.json | jq -r '.version')
# Save the react native version we are building in a file so we can use that file as part of the cache key.
echo "$VERSION" > /tmp/react-native-version
echo "React Native Version is $(cat /tmp/react-native-version)"
echo "Hermes commit is $(cat /tmp/hermes/hermesversion)"
HERMES_VERSION="$(cat /tmp/hermes/hermesversion)"
echo "Hermes commit is $HERMES_VERSION"

get_react_native_version_windows:
steps:
- run:
name: Get React Native version on Windows
command: |
$VERSION=cat packages/react-native/package.json | jq -r '.version'
# Save the react native version we are building in a file so we can use that file as part of the cache key.
echo "$VERSION" > /tmp/react-native-version
echo "React Native Version is $(cat /tmp/react-native-version)"
$HERMES_VERSION=cat C:\Users\circleci\project\tmp\hermes\hermesversion
echo "Hermes commit is $HERMES_VERSION"

with_hermes_tarball_cache_span:
parameters:
Expand Down Expand Up @@ -720,11 +734,16 @@ jobs:
command: |
buck build ReactAndroid/src/main/java/com/facebook/react
buck build ReactAndroid/src/main/java/com/facebook/react/shell

- run:
name: Run Tests - Android Unit Tests with Buck
command: buck test ReactAndroid/src/test/... --config build.threads=$BUILD_THREADS --xml ./reports/buck/all-results-raw.xml

- store_test_results:
path: ~/react-native/ReactAndroid/build/test-results

- store_test_results:
path: ~/react-native/packages/react-native-gradle-plugin/build/test-results

- run:
name: Build JavaScript Bundle for instrumentation tests
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
Expand Down Expand Up @@ -1173,17 +1192,18 @@ jobs:
- image: debian:bullseye
# [macOS] Change resource_class to large as we're on the free CircleCI plan
resource_class: "large"
working_directory: /root
steps:
- checkout_code_with_cache
- run:
name: Install dependencies
command: |
apt update
apt install -y git openssh-client cmake build-essential \
libreadline-dev libicu-dev zip python3
libreadline-dev libicu-dev jq zip python3
- *attach_hermes_workspace
- get_react_native_version
- restore_cache:
key: *hermes_workspace_cache_key
key: *hermes_linux_cache_key
- run:
name: Set up workspace
command: |
Expand All @@ -1202,7 +1222,7 @@ jobs:
cp /tmp/hermes/build/bin/hermesc /tmp/hermes/linux64-bin/.
fi
- save_cache:
key: *hermes_workspace_cache_key
key: *hermes_linux_cache_key
paths:
- /tmp/hermes/linux64-bin/
- /tmp/hermes/hermes/destroot/
Expand Down Expand Up @@ -1323,7 +1343,9 @@ jobs:
- MSBUILD_DIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin'
- CMAKE_DIR: 'C:\Program Files\CMake\bin'
steps:
- checkout_code_with_cache
- *attach_hermes_workspace
- get_react_native_version_windows
- restore_cache:
key: *hermes_windows_cache_key
- run:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GEM
specs:
CFPropertyList (3.0.6)
rexml
activesupport (7.0.5.1)
activesupport (7.0.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand Down
207 changes: 121 additions & 86 deletions Libraries/Components/TextInput/TextInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,92 +386,6 @@ export interface TextInputMacOSProps {
* @see https://reactnative.dev/docs/textinput#props
*/
export interface TextInputAndroidProps {
/**
* Specifies autocomplete hints for the system, so it can provide autofill. On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content.
* To disable autocomplete, set `autoComplete` to `off`.
*
* *Android Only*
*
* Possible values for `autoComplete` are:
*
* - `birthdate-day`
* - `birthdate-full`
* - `birthdate-month`
* - `birthdate-year`
* - `cc-csc`
* - `cc-exp`
* - `cc-exp-day`
* - `cc-exp-month`
* - `cc-exp-year`
* - `cc-number`
* - `email`
* - `gender`
* - `name`
* - `name-family`
* - `name-given`
* - `name-middle`
* - `name-middle-initial`
* - `name-prefix`
* - `name-suffix`
* - `password`
* - `password-new`
* - `postal-address`
* - `postal-address-country`
* - `postal-address-extended`
* - `postal-address-extended-postal-code`
* - `postal-address-locality`
* - `postal-address-region`
* - `postal-code`
* - `street-address`
* - `sms-otp`
* - `tel`
* - `tel-country-code`
* - `tel-national`
* - `tel-device`
* - `username`
* - `username-new`
* - `off`
*/
autoComplete?:
| 'birthdate-day'
| 'birthdate-full'
| 'birthdate-month'
| 'birthdate-year'
| 'cc-csc'
| 'cc-exp'
| 'cc-exp-day'
| 'cc-exp-month'
| 'cc-exp-year'
| 'cc-number'
| 'email'
| 'gender'
| 'name'
| 'name-family'
| 'name-given'
| 'name-middle'
| 'name-middle-initial'
| 'name-prefix'
| 'name-suffix'
| 'password'
| 'password-new'
| 'postal-address'
| 'postal-address-country'
| 'postal-address-extended'
| 'postal-address-extended-postal-code'
| 'postal-address-locality'
| 'postal-address-region'
| 'postal-code'
| 'street-address'
| 'sms-otp'
| 'tel'
| 'tel-country-code'
| 'tel-national'
| 'tel-device'
| 'username'
| 'username-new'
| 'off'
| undefined;

/**
* When provided it will set the color of the cursor (or "caret") in the component.
* Unlike the behavior of `selectionColor` the cursor color will be set independently
Expand Down Expand Up @@ -655,6 +569,127 @@ export interface TextInputProps
*/
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters' | undefined;

/**
* Specifies autocomplete hints for the system, so it can provide autofill.
* On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content.
* To disable autocomplete, set autoComplete to off.
*
* The following values work across platforms:
*
* - `additional-name`
* - `address-line1`
* - `address-line2`
* - `cc-number`
* - `country`
* - `current-password`
* - `email`
* - `family-name`
* - `given-name`
* - `honorific-prefix`
* - `honorific-suffix`
* - `name`
* - `new-password`
* - `off`
* - `one-time-code`
* - `postal-code`
* - `street-address`
* - `tel`
* - `username`
*
* The following values work on iOS only:
*
* - `nickname`
* - `organization`
* - `organization-title`
* - `url`
*
* The following values work on Android only:
*
* - `birthdate-day`
* - `birthdate-full`
* - `birthdate-month`
* - `birthdate-year`
* - `cc-csc`
* - `cc-exp`
* - `cc-exp-day`
* - `cc-exp-month`
* - `cc-exp-year`
* - `gender`
* - `name-family`
* - `name-given`
* - `name-middle`
* - `name-middle-initial`
* - `name-prefix`
* - `name-suffix`
* - `password`
* - `password-new`
* - `postal-address`
* - `postal-address-country`
* - `postal-address-extended`
* - `postal-address-extended-postal-code`
* - `postal-address-locality`
* - `postal-address-region`
* - `sms-otp`
* - `tel-country-code`
* - `tel-national`
* - `tel-device`
* - `username-new`
*/
autoComplete?:
| 'additional-name'
| 'address-line1'
| 'address-line2'
| 'birthdate-day'
| 'birthdate-full'
| 'birthdate-month'
| 'birthdate-year'
| 'cc-csc'
| 'cc-exp'
| 'cc-exp-day'
| 'cc-exp-month'
| 'cc-exp-year'
| 'cc-number'
| 'country'
| 'current-password'
| 'email'
| 'family-name'
| 'gender'
| 'given-name'
| 'honorific-prefix'
| 'honorific-suffix'
| 'name'
| 'name-family'
| 'name-given'
| 'name-middle'
| 'name-middle-initial'
| 'name-prefix'
| 'name-suffix'
| 'new-password'
| 'nickname'
| 'one-time-code'
| 'organization'
| 'organization-title'
| 'password'
| 'password-new'
| 'postal-address'
| 'postal-address-country'
| 'postal-address-extended'
| 'postal-address-extended-postal-code'
| 'postal-address-locality'
| 'postal-address-region'
| 'postal-code'
| 'street-address'
| 'sms-otp'
| 'tel'
| 'tel-country-code'
| 'tel-national'
| 'tel-device'
| 'url'
| 'username'
| 'username-new'
| 'off'
| undefined;

/**
* If false, disables auto-correct.
* The default value is true.
Expand Down
Loading