mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
47a470a97c
Summary:Adding the react native renderer dependency and various fixes to support React 15. Don't use dispatchID for touchableHandleResponderGrant This callback argument was removed because "IDs" no longer exist. Instead, we'll use the tag from the event target. The corresponding PR on React Core is: https://github.com/facebook/react/pull/6338 Reviewed By: spicyj Differential Revision: D3159788 fb-gh-sync-id: 60e5cd2aa0af69d83fcdac3dfde0a85a748cb7b9 fbshipit-source-id: 60e5cd2aa0af69d83fcdac3dfde0a85a748cb7b9
36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
/**
|
|
* @generated SignedSource<<ec51291ea6059cf23faa74f8644d17b1>>
|
|
*
|
|
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
* !! This file is a check-in of a static_upstream project! !!
|
|
* !! !!
|
|
* !! You should not modify this file directly. Instead: !!
|
|
* !! 1) Use `fjs use-upstream` to temporarily replace this with !!
|
|
* !! the latest version from upstream. !!
|
|
* !! 2) Make your changes, test them, etc. !!
|
|
* !! 3) Use `fjs push-upstream` to copy your changes back to !!
|
|
* !! static_upstream. !!
|
|
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
*
|
|
* @providesModule clamp
|
|
* @typechecks
|
|
*/
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @param {number} min
|
|
* @param {number} max
|
|
* @return {number}
|
|
*/
|
|
function clamp(min, value, max) {
|
|
if (value < min) {
|
|
return min;
|
|
}
|
|
if (value > max) {
|
|
return max;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
module.exports = clamp;
|