user13111392
user13111392

Reputation: 21

React Native use_native_modules documentation

I can't any documentation regarding use_native_modules in Podfile. Can anyone please help?

Upvotes: 2

Views: 401

Answers (1)

Paweł Mikołajczuk
Paweł Mikołajczuk

Reputation: 3812

use_native_modules is a function defined and called by react-native/cli for autolinking purposes.

Here is the original pull request for this feature: https://github.com/react-native-community/cli/pull/256

Here is it's description from source code:

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

Upvotes: 3

Related Questions