Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
22 lines
630 B
TypeScript
22 lines
630 B
TypeScript
import { NativeEventSubscription } from 'react-native';
|
|
|
|
import { _SET_IMMERSIVE_SUBSCRIPTION } from './actionTypes';
|
|
|
|
/**
|
|
* Sets the change event listener to be used with react-native-immersive's API.
|
|
*
|
|
* @param {Function} subscription - The function to be used with
|
|
* react-native-immersive's API as the change event listener.
|
|
* @protected
|
|
* @returns {{
|
|
* type: _SET_IMMERSIVE_SUBSCRIPTION,
|
|
* subscription: ?NativeEventSubscription
|
|
* }}
|
|
*/
|
|
export function _setImmersiveSubscription(subscription?: NativeEventSubscription) {
|
|
return {
|
|
type: _SET_IMMERSIVE_SUBSCRIPTION,
|
|
subscription
|
|
};
|
|
}
|