Реагировать на родную документацию use_native_modules - PullRequest
1 голос
/ 14 апреля 2020

У меня нет документации по use_native_modules в Подфиле. Может кто-нибудь помочь, пожалуйста?

1 Ответ

1 голос
/ 14 апреля 2020

use_native_modules - это функция, определяемая и вызываемая Reaction-native / cli для автосвязи целей.

Вот исходный запрос на извлечение для этой функции: https://github.com/react-native-community/cli/pull/256

Вот его описание из исходного кода:

# This is a function which is used inside your Podfile.
# It uses `react-native config` to grab a list of dependencies, and pulls out.all of the ones
# which declare themselves to be iOS dependencies (via having a Podspec) and automatically
# imports those into your current target.
...