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

actions.js 523B

123456789101112131415161718192021
  1. // @flow
  2. import { _SET_IMMERSIVE_LISTENER } from './actionTypes';
  3. /**
  4. * Sets the change event listener to be used with react-native-immersive's API.
  5. *
  6. * @param {Function} [listener] - 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_LISTENER,
  11. * listener: ?Function
  12. * }}
  13. */
  14. export function _setImmersiveListener(listener: ?Function) {
  15. return {
  16. type: _SET_IMMERSIVE_LISTENER,
  17. listener
  18. };
  19. }