Bruno Barbieri
3904228704
Make Vibration.vibrate compatible with TurboModules ( #27951 )
...
Summary:
This PR fixes a compatibility issue with the Vibration module and TurboModules.
The TurboModules spec doesn't allow nullable arguments of type Number, causing the following problem:

## Changelog
[iOS] [Fixed] - Make Vibration library compatible with TurboModules.
Pull Request resolved: https://github.com/facebook/react-native/pull/27951
Test Plan:
Just submitted a PR to my own app to fix the issue [here](https://github.com/rainbow-me/rainbow/pull/340 )
The problem should be reproducible on RNTester due to this line: https://github.com/facebook/react-native/blob/91f139b94118fe8db29728ea8ad855fc4a13f743/RNTester/js/examples/Vibration/VibrationExample.js#L66 and should be working on this branch.
Reviewed By: TheSavior
Differential Revision: D19761064
Pulled By: hramos
fbshipit-source-id: 84f6b62a2734cc09d450e906b5866d4e9ce61124
2020-04-07 18:27:03 -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
Ramanpreet Nara
789e9fbff0
Make RCTVibration TurboModule-compatible
...
Summary: Making RCTVibration TurboModule-compatible.
Reviewed By: PeteTheHeat
Differential Revision: D17581373
fbshipit-source-id: a7aa2d12e7251d332c855435c2f0d83d87f0d2ac
2019-10-01 11:15:08 -07: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
Ramanpreet Nara
452acf8818
Add NativeModule Spec for Vibration
...
Summary: This diff introduces NativeVibration
Reviewed By: TheSavior
Differential Revision: D16344820
fbshipit-source-id: fe5187a1a500308a41c41272968bea25a5b3ffde
2019-07-19 12:12:14 -07:00