react-native.config.js 987 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. */
  9. 'use strict';
  10. const ios = require('@react-native-community/cli-platform-ios');
  11. const android = require('@react-native-community/cli-platform-android');
  12. module.exports = {
  13. commands: [...ios.commands, ...android.commands],
  14. platforms: {
  15. ios: {
  16. linkConfig: ios.linkConfig,
  17. projectConfig: ios.projectConfig,
  18. dependencyConfig: ios.dependencyConfig,
  19. },
  20. android: {
  21. linkConfig: android.linkConfig,
  22. projectConfig: android.projectConfig,
  23. dependencyConfig: android.dependencyConfig,
  24. },
  25. },
  26. /**
  27. * Used when running RNTester (with React Native from source)
  28. */
  29. reactNativePath: '.',
  30. project: {
  31. ios: {
  32. project: './RNTester/RNTesterPods.xcworkspace',
  33. },
  34. android: {
  35. sourceDir: './RNTester',
  36. },
  37. },
  38. };