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

languageDetector.native.js 412B

123456789101112131415161718192021222324
  1. /* @flow */
  2. import locale from 'react-native-locale-detector';
  3. /**
  4. * The singleton language detector for React Native which uses the system-wide
  5. * locale.
  6. */
  7. export default {
  8. /**
  9. * Does not support caching.
  10. *
  11. * @returns {void}
  12. */
  13. cacheUserLanguage: Function.prototype,
  14. detect() {
  15. return locale;
  16. },
  17. init: Function.prototype,
  18. type: 'languageDetector'
  19. };