From e741488659cb786f78f42d5e285d628026d2cd7f Mon Sep 17 00:00:00 2001 From: Salakar Date: Wed, 24 Apr 2019 06:13:20 -0700 Subject: [PATCH] Implement changes to enable native modules auto linking (#24506) Summary: Replaces #24099 (original PR became detached for some reason) Implements the template changes required to enable native modules auto-linking for both Android & iOS. Requires the following to be merged first and an updated CLI to be published: - [x] https://github.com/react-native-community/react-native-cli/pull/254 - [x] https://github.com/react-native-community/react-native-cli/pull/256 - [x] https://github.com/react-native-community/react-native-cli/pull/258 cc grabbou thymikee orta for review - [ ] https://github.com/facebook/react-native/pull/24517 update CLI version) [TEMPLATE] [FEATURE] - Enable auto-initialization/linking of react native modules for new projects Pull Request resolved: https://github.com/facebook/react-native/pull/24506 Differential Revision: D15062701 Pulled By: cpojer fbshipit-source-id: 65296cbec2925405fe8033de71910325e0c719bc # Conflicts: # template/ios/Podfile --- template/ios/Podfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/ios/Podfile b/template/ios/Podfile index b29232faea2455..a25e513a914b07 100644 --- a/template/ios/Podfile +++ b/template/ios/Podfile @@ -1,4 +1,5 @@ platform :ios, '9.0' +require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' target 'HelloWorld' do # Pods for HelloWorld @@ -32,6 +33,7 @@ target 'HelloWorld' do # Pods for testing end + use_native_modules! end target 'HelloWorld-tvOS' do