You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }