Settings.android.js 739 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow
  9. */
  10. 'use strict';
  11. const Settings = {
  12. get(key: string): mixed {
  13. console.warn('Settings is not yet supported on Android');
  14. return null;
  15. },
  16. set(settings: Object) {
  17. console.warn('Settings is not yet supported on Android');
  18. },
  19. watchKeys(keys: string | Array<string>, callback: Function): number {
  20. console.warn('Settings is not yet supported on Android');
  21. return -1;
  22. },
  23. clearWatch(watchId: number) {
  24. console.warn('Settings is not yet supported on Android');
  25. },
  26. };
  27. module.exports = Settings;