-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Upgrade to react-native-web v0.19.9 #24482
Merged
Merged
Changes from all commits
Commits
Show all changes
142 commits
Select commit
Hold shift + click to select a range
f4f44ae
replace rnw fork with latest upstream
getusha eb51a99
remove deprecated resizeMode style
getusha 8602d9a
replace deprecated keyboardType with inputMode prop
getusha 0c94199
replace deprecated returnKeyType with enterKeyHint prop
getusha 033d72b
replace deprecated editable with readOnly prop
getusha 6290c69
replace deprecated numberOfLines with rows TextInput
getusha 822efb5
replace deprecated nativeID with id
getusha 465f0a8
replace deprecated focusable with tabIndex prop
getusha 93f060c
replace deprecated pointerEvents prop with pointerEvents style
getusha a3bfc89
replace deprecated accessibilityRole with role prop and adjust values
getusha a0bdde8
replace deprecated accessibilityLabel with aria-label prop
getusha 55fd034
replace deprecated accessibilityLabel with aria-label prop
getusha 6c20ce6
replace deprecated accessibilityState with arial-*
getusha 6079901
replace deprecated selectable prop with userSelect style
getusha ee8f268
replace deprecated textAlignVertical prop with verticalAlign style
getusha ad265d3
replace array transform with spaced values
getusha a549f6d
fix unresponsive input
getusha f1a7649
make text position static and assign text to semantic tag
getusha 54c90ce
use accessibilityLabel instead of arial-label for testing-library sup…
getusha 17679f7
fix typo
getusha 523e561
patch Fix inverted flatlist and other fixes
getusha ecaf413
remove redundant prop
getusha 36b0f07
remove deprecated Stylesheet.compose
getusha 6718f5e
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 11a4196
bump react-native-key-command version to 1.0.4
getusha a936fe2
sync Podfile.lock with updated version
getusha 916bff0
fix lint
getusha 2e2727f
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 8223ae0
fix wrong for absolute positioned elements and remove redundant patch…
getusha f7d6952
fix wrong alignment of emoji picker popover
getusha 61b495c
correct isReadOnly condition
getusha ecdb04d
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 76b60b9
fix lint
getusha 3b197e5
use the correct key name
getusha 514e99f
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 968a37f
run prettier
getusha 893da76
fix lint after prettier
getusha 089cc69
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 2c2b9f2
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha ce97f45
remove duplicate cellRenderer
getusha 32ebb44
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha b339956
run prettier
getusha f5709f2
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 522d7f3
fix chat content scroll view wrong alignment
getusha 3e2b3f7
remove textAlignVertical usage accross styles
getusha a37dbfa
remove accessibilityRole
getusha 17deb6d
remove redundant alias
getusha 9895179
fic crash on Assign task
getusha 0b4ee5c
fix unwanted freeze after navigating before transitionEnd
getusha 5184706
fix conflic
getusha ff8fd42
run prettier
getusha 02aa981
fix no space between FAB and menu
getusha d7a3667
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 96151dc
fix wrong inverted list order ios
getusha c87e7d1
fix BackHandler is not supported on web and should not be used. error
getusha c61a351
replace deprecated StyleSheet.compose
getusha 8d61c73
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha fe84d43
remove accessibilityRole after merge
getusha b826fab
replace shadow* style properties with boxShadow
getusha 11fe5b0
run prettier
getusha 48e7300
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 129ffd8
update package-lock
getusha 696739a
use const value
getusha 429c368
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 9756b16
replace deprecated values after merging
getusha 6b39885
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 14b62f4
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha e012efb
replace selectable prop with styles equivalent
getusha b2bd893
fix lint
getusha d956b64
replace deprecated props after pulling main
getusha f36fea0
fix typo & lint
getusha 11d05cf
replace none-existent role value
getusha 30e6d66
fix warning on iOS
getusha f1ba929
replace deprecated accessibilityRole with role prop
getusha 3a5fb84
remove redundant CellRendererComponent
getusha eead447
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 9ac00cb
run prettier
getusha d8a013c
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 39e9f13
some corrections after pulling main
getusha 53df22c
fix crashs
getusha e054fb9
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha cb11d1c
fix overwritten changes from pulling main
getusha 3c32805
replace deprecated props after pulling main
getusha e5c37f6
fix lint
getusha f7a4199
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 345cc42
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 19f03df
Correct overwritten changes back
getusha a688b06
Fix lint
getusha bbea394
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 7fd9eb7
Bump react-native-web version to 0.19.9
getusha 40d3859
replace deprecated props and fix console error
getusha 8d3b388
fix text-input focus issue and add missed changes from main
getusha 19f45cc
run prettier
getusha 68b64c5
fix crash when emoji list is empty
getusha 0551c8b
remove single execution mechanism for web
getusha 77882fd
fix wrong emojipicker alignment RHN
getusha 03c6036
fix lint
getusha d5d48e0
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 879aa68
run prettier
getusha 85bb0bf
fix delay of focus input after inserting emoji
getusha ce962a9
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha d56e451
replace deprecated props after pulling main
getusha 6382489
fix lint
getusha 8d62f3c
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 186efbc
Apply rnw patches
getusha 9994159
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha fd50db8
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 0e02485
Update initialNumToRender
getusha 502ca80
Revert Update initialNumToRender
getusha f49fbf1
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 4c66c87
style changes after ts migration
getusha 4d76788
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 8c3e3bc
run prettier
getusha b5929dc
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha a49db65
Update Navigation type usage from CONST
getusha 0a1033f
Update initialNumToRender
getusha 3320168
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha ee36454
fix wrong emojipicker alignment
getusha d22ed89
increase mock scrollable content height for performance test
getusha 2b8f115
replace deprecated props after pulling main
getusha e87d35d
Revert "Merge remote-tracking branch 'expensify/main' into upgrade-re…
getusha 03a9fe0
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 71b5b31
fix lint
getusha 8345471
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha 399309e
remove renamed component file
getusha e3fc7c5
fix lint and run prettier
getusha e6461f1
use legacy mode instead of concurrent
getusha dab2a9a
increase mock scrollable content height for performance test
getusha e6ae642
revert mock scrollable content height change for performance test
getusha 641c2a2
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha f26e9f4
fix delay of focus input after inserting emoji
getusha 05ad0e8
fix wrong emojipicker alignment
getusha dbbacb2
increase initialNumToRender to 20
getusha 01a9cc9
fix wrong emojipicker alignment again
getusha f1586ce
fix amount input showing soft keyboard
getusha f21576e
add default prop value to shouldUseTargetLocation
getusha 873a227
update package-lock
getusha 899eaf4
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha b48a7e1
run prettier
getusha 0aff57e
resolve conflicts
luacmartins 1f3d2a3
Merge remote-tracking branch 'expensify/main' into upgrade-react-nati…
getusha c97ff97
split useSignleExecution for web and native
getusha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -53,17 +53,27 @@ The phone number can be formatted in different ways. | |||||||||||
|
||||||||||||
### Native Keyboards | ||||||||||||
|
||||||||||||
We should always set people up for success on native platforms by enabling the best keyboard for the type of input we’re asking them to provide. See [keyboardType](https://reactnative.dev/docs/0.64/textinput#keyboardtype) in the React Native documentation. | ||||||||||||
We should always set people up for success on native platforms by enabling the best keyboard for the type of input we’re asking them to provide. See [inputMode](https://reactnative.dev/docs/textinput#inputmode) in the React Native documentation. | ||||||||||||
|
||||||||||||
We have a couple of keyboard types [defined](https://github.com/Expensify/App/blob/572caa9e7cf32a2d64fe0e93d171bb05a1dfb217/src/CONST.js#L357-L360) and should be used like so: | ||||||||||||
We have a list of input modes [defined](https://github.com/Expensify/App/blob/9418b870515102631ea2156b5ea253ee05a98ff1/src/CONST.js#L765-L774) and should be used like so: | ||||||||||||
|
||||||||||||
```jsx | ||||||||||||
<InputWrapper | ||||||||||||
InputComponent={TextInput} | ||||||||||||
keyboardType={CONST.KEYBOARD_TYPE.NUMBER_PAD} | ||||||||||||
inputMode={CONST.INPUT_MODE.NUMERIC} | ||||||||||||
/> | ||||||||||||
``` | ||||||||||||
|
||||||||||||
We also have [keyboardType](https://github.com/Expensify/App/blob/9418b870515102631ea2156b5ea253ee05a98ff1/src/CONST.js#L760-L763) and should be used for specific use cases when there is no `inputMode` equivalent of the value exist. and should be used like so: | ||||||||||||
|
||||||||||||
Comment on lines
+67
to
+68
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
```jsx | ||||||||||||
<InputWrapper | ||||||||||||
InputComponent={TextInput} | ||||||||||||
keyboardType={CONST.KEYBOARD_TYPE.ASCII_CAPABLE} | ||||||||||||
/> | ||||||||||||
``` | ||||||||||||
|
||||||||||||
|
||||||||||||
### Autofill Behavior | ||||||||||||
|
||||||||||||
Forms should autofill information whenever possible i.e. they should work with browsers and password managers auto complete features. | ||||||||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
diff --git a/node_modules/eslint-plugin-react-native-a11y/__tests__/src/rules/has-valid-accessibility-descriptors-test.js b/node_modules/eslint-plugin-react-native-a11y/__tests__/src/rules/has-valid-accessibility-descriptors-test.js | ||
index 9ecf8b1..fef94dd 100644 | ||
--- a/node_modules/eslint-plugin-react-native-a11y/__tests__/src/rules/has-valid-accessibility-descriptors-test.js | ||
+++ b/node_modules/eslint-plugin-react-native-a11y/__tests__/src/rules/has-valid-accessibility-descriptors-test.js | ||
@@ -20,7 +20,7 @@ const ruleTester = new RuleTester(); | ||
|
||
const expectedError = { | ||
message: | ||
- 'Missing a11y props. Expected one of: accessibilityRole OR BOTH accessibilityLabel + accessibilityHint OR BOTH accessibilityActions + onAccessibilityAction', | ||
+ 'Missing a11y props. Expected one of: accessibilityRole OR role OR BOTH accessibilityLabel + accessibilityHint OR BOTH accessibilityActions + onAccessibilityAction', | ||
type: 'JSXOpeningElement', | ||
}; | ||
|
||
@@ -29,6 +29,11 @@ ruleTester.run('has-valid-accessibility-descriptors', rule, { | ||
{ | ||
code: '<View></View>;', | ||
}, | ||
+ { | ||
+ code: `<Pressable role="button"> | ||
+ <Text>Back</Text> | ||
+ </Pressable>`, | ||
+ }, | ||
{ | ||
code: `<Pressable accessibilityRole="button"> | ||
<Text>Back</Text> | ||
diff --git a/node_modules/eslint-plugin-react-native-a11y/lib/rules/has-valid-accessibility-descriptors.js b/node_modules/eslint-plugin-react-native-a11y/lib/rules/has-valid-accessibility-descriptors.js | ||
index 99deb91..555ebd9 100644 | ||
--- a/node_modules/eslint-plugin-react-native-a11y/lib/rules/has-valid-accessibility-descriptors.js | ||
+++ b/node_modules/eslint-plugin-react-native-a11y/lib/rules/has-valid-accessibility-descriptors.js | ||
@@ -16,7 +16,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de | ||
// ---------------------------------------------------------------------------- | ||
// Rule Definition | ||
// ---------------------------------------------------------------------------- | ||
-var errorMessage = 'Missing a11y props. Expected one of: accessibilityRole OR BOTH accessibilityLabel + accessibilityHint OR BOTH accessibilityActions + onAccessibilityAction'; | ||
+var errorMessage = 'Missing a11y props. Expected one of: accessibilityRole OR role OR BOTH accessibilityLabel + accessibilityHint OR BOTH accessibilityActions + onAccessibilityAction'; | ||
var schema = (0, _schemas.generateObjSchema)(); | ||
|
||
var hasSpreadProps = function hasSpreadProps(attributes) { | ||
@@ -35,7 +35,7 @@ module.exports = { | ||
return { | ||
JSXOpeningElement: function JSXOpeningElement(node) { | ||
if ((0, _isTouchable.default)(node, context) || (0, _jsxAstUtils.elementType)(node) === 'TextInput') { | ||
- if (!(0, _jsxAstUtils.hasAnyProp)(node.attributes, ['accessibilityRole', 'accessibilityLabel', 'accessibilityActions', 'accessible']) && !hasSpreadProps(node.attributes)) { | ||
+ if (!(0, _jsxAstUtils.hasAnyProp)(node.attributes, ['role', 'accessibilityRole', 'accessibilityLabel', 'accessibilityActions', 'accessible']) && !hasSpreadProps(node.attributes)) { | ||
context.report({ | ||
node, | ||
message: errorMessage, | ||
diff --git a/node_modules/eslint-plugin-react-native-a11y/lib/rules/has-valid-accessibility-role.js b/node_modules/eslint-plugin-react-native-a11y/lib/rules/has-valid-accessibility-role.js | ||
index fe74702..fa6bdaa 100644 | ||
--- a/node_modules/eslint-plugin-react-native-a11y/lib/rules/has-valid-accessibility-role.js | ||
+++ b/node_modules/eslint-plugin-react-native-a11y/lib/rules/has-valid-accessibility-role.js | ||
@@ -13,5 +13,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de | ||
// Rule Definition | ||
// ---------------------------------------------------------------------------- | ||
var errorMessage = 'accessibilityRole must be one of defined values'; | ||
-var validValues = ['togglebutton', 'adjustable', 'alert', 'button', 'checkbox', 'combobox', 'header', 'image', 'imagebutton', 'keyboardkey', 'link', 'menu', 'menubar', 'menuitem', 'none', 'progressbar', 'radio', 'radiogroup', 'scrollbar', 'search', 'spinbutton', 'summary', 'switch', 'tab', 'tabbar', 'tablist', 'text', 'timer', 'list', 'toolbar']; | ||
+var validValues = ['img', 'img button', 'img link', 'togglebutton', 'adjustable', 'alert', 'button', 'checkbox', 'combobox', 'header', 'image', 'imagebutton', 'keyboardkey', 'link', 'menu', 'menubar', 'menuitem', 'none', 'progressbar', 'radio', 'radiogroup', 'scrollbar', 'search', 'spinbutton', 'summary', 'switch', 'tab', 'tabbar', 'tablist', 'text', 'timer', 'list', 'toolbar']; | ||
module.exports = (0, _validProp.default)('accessibilityRole', validValues, errorMessage); | ||
\ No newline at end of file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe pin the version of doc to 0.72 like this
https://reactnative.dev/docs/0.72/textinput#inputmode