Andres Suarez
8bd3edec88
Update copyright headers from Facebook to Meta
...
Reviewed By: aaronabramov
Differential Revision: D33367752
fbshipit-source-id: 4ce94d184485e5ee0a62cf67ad2d3ba16e285c8f
2021-12-30 15:11:21 -08:00
grgr-dkrk
c8b83d4e0b
feat: add isAccessibilityServiceEnabled ( #31396 )
...
Summary:
fix https://github.com/facebook/react-native/issues/30863
This PR adds `isAccessibilityServiceEnabled` to get if accessibility services are enabled on Android.
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->
[Android] [Added] - Added `isAccessibilityServiceEnabled` to get if accessibility services are enabled
Pull Request resolved: https://github.com/facebook/react-native/pull/31396
Test Plan: 
Reviewed By: yungsters
Differential Revision: D31911880
Pulled By: lunaleaps
fbshipit-source-id: 9ae294999a6d46bf051ab658507bf97764a945d2
2021-10-29 18:40:59 -07:00
grgr-dkrk
d29a7e7a89
add getRecommendedTimeoutMillis to AccessibilityInfo ( #31063 )
...
Summary:
resolve https://github.com/facebook/react-native/issues/30866
This PR is for using `getRecommendedTimeoutMillis` with React Native, which is available on Android 10 and above.
This allows the Android "Time to take action (Accessibility timeout)" setting to be reflected in the app.
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->
[Android] [Added] - Add `getRecommendedTimeoutMillis` to AccessibilityInfo
Pull Request resolved: https://github.com/facebook/react-native/pull/31063
Test Plan:
I couldn't find any tests at the code level, so I tested them on my Android device.
---
### Android 10 (Pixel4a)
#### Settings
<img src="https://user-images.githubusercontent.com/40130327/109322854-210f2400-7896-11eb-9f3b-b88afa27abfb.png " width="400" alt="Set the timeout to 1 minute on the settings screen." />
#### App
<img src="https://user-images.githubusercontent.com/40130327/109322895-32583080-7896-11eb-9c48-c4aa9afb94d9.png " width="400" alt="The baseline timeout is 3000 ms, but the result of `getRecommendedTimeoutMillis` returns 60000 ms." />
---
### Android 7, iOS(Simulator)
Return the original timeout.
<img src="https://user-images.githubusercontent.com/40130327/109323217-911daa00-7896-11eb-9eba-659bc623f2ac.png " width="400" alt="Return the original timeout on Android 7." />
<img src="https://user-images.githubusercontent.com/40130327/109323357-b7dbe080-7896-11eb-89e9-305eea8b801b.png " width="400" alt="Return the original timeout on iOS simulator." />
Reviewed By: lunaleaps
Differential Revision: D27475370
Pulled By: nadiia
fbshipit-source-id: 4cdd9eb5ddb20d89c1d870e640b4b7e3c3c1b14d
2021-04-06 13:48:24 -07:00
Micha Reiser
93377ff508
Remove "use strict" directive from ES Modules
...
Summary:
ES Modules implicitly enable strict mode. Adding the "use strict" directive is, therefore, not required.
This diff removes all "use strict" directives from ES modules.
Changelog:
[Internal]
Reviewed By: motiz88
Differential Revision: D26172715
fbshipit-source-id: 57957bcbb672c4c3e62b1db633cf425c1c9d6430
2021-02-02 11:12:56 -08:00
Rubén Norte
4409642811
Migrate large amount of modules to flow strict and strict-local
...
Summary:
| Group | Before | After | Change |
| Untyped | 50 | 49 | -1 |
| flow | 197 | 155 | -42 |
| flow strict-local | 226 | 185 | -41 |
| flow strict | 33 | 117 | +84
Changelog: [Changed] Improved Flow typing of multiple modules (with migrations to `flow strict` and `flow strict-local`
Reviewed By: motiz88
Differential Revision: D22549140
fbshipit-source-id: ed29415332cfce15b244ee4dea9e13d035543175
2020-07-22 09:46:16 -07:00
Eli White
e362470305
Convert easy files to flow strict-local
...
Summary:
This diff was generated by this script used by WWW
https://our.intern.facebook.com/intern/diffusion/WWW/browse/master/scripts/flow/upgrade_to_flow_strict_local.sh?lines=0
Changelog:
[Internal] Upgrade flow to flow strict-local
Reviewed By: zackargyle, rickhanlonii
Differential Revision: D18833630
fbshipit-source-id: e64d4e9a49a0db5e6bf70a0c489567862b578d7f
2019-12-05 16:06:46 -08:00
Kevin Gozali
fb627dac6a
TM JS: Revert to import from TurboModuleRegistry.js
...
Summary:
Changelog: [Internal]
Reverting the import to the previous local module style since importing from react-native seems to introduce some perf regression. We'll revisit this later in the future.
Reviewed By: yungsters
Differential Revision: D18383893
fbshipit-source-id: f11d46a4545768f39199fd6fd22fcf14905d0a74
2019-11-08 11:44:16 -08:00
Kevin Gozali
dd06f85bd0
TM JS: cleaned up TurboModuleRegistry types [2]
...
Summary:
Changelog: [Internal]
Moved the imports for `TurboModuleRegistry` and `TurboModule` from `react-native`. This was a jscodeshift with the script: P120688078
Reviewed By: yungsters
Differential Revision: D18262538
fbshipit-source-id: 48fac15229c897408928511c5ecbb42f17ec7b42
2019-11-04 18:51:05 -08:00
Logan Daniels
91f139b941
xplat/js/react-native-github
...
Reviewed By: panagosg7
Differential Revision: D16657770
fbshipit-source-id: 4e260842c838a35317515044c54ccf55a083da33
2019-08-09 10:11:15 -07:00
James Ide
a7a7970e54
Replace more Haste imports with path-based imports ( #25001 )
...
Summary:
This is another step in moving RN towards standard path-based requires, updating more code to use path-based requires. See the umbrella issue at https://github.com/facebook/react-native/issues/24316 for more detail.
## Changelog
[General] [Changed] - Replace more Haste imports with path-based imports
Pull Request resolved: https://github.com/facebook/react-native/pull/25001
Differential Revision: D15467829
Pulled By: cpojer
fbshipit-source-id: 58c364bb4c1c757689907d5ed0d0f3fac0e22f3f
2019-05-23 00:51:31 -07:00
michalchudziak
67c3ed34ba
Add specs for AccessibilityInfo ( #24891 )
...
Summary:
Part of https://github.com/facebook/react-native/issues/24875
## Changelog
[General] [Added] - Add TurboModule spec for AccessibilityInfo
Pull Request resolved: https://github.com/facebook/react-native/pull/24891
Reviewed By: fkgozali
Differential Revision: D15394913
Pulled By: RSNara
fbshipit-source-id: e66e7b7fc4451575b5022695f125c15f9f4b707e
2019-05-22 13:10:25 -07:00