您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

actions.ts 630B

123456789101112131415161718192021
  1. import { NativeEventSubscription } from 'react-native';
  2. import { _SET_IMMERSIVE_SUBSCRIPTION } from './actionTypes';
  3. /**
  4. * Sets the change event listener to be used with react-native-immersive's API.
  5. *
  6. * @param {Function} subscription - The function to be used with
  7. * react-native-immersive's API as the change event listener.
  8. * @protected
  9. * @returns {{
  10. * type: _SET_IMMERSIVE_SUBSCRIPTION,
  11. * subscription: ?NativeEventSubscription
  12. * }}
  13. */
  14. export function _setImmersiveSubscription(subscription?: NativeEventSubscription) {
  15. return {
  16. type: _SET_IMMERSIVE_SUBSCRIPTION,
  17. subscription
  18. };
  19. }