Skip to content

Commit 6336e4d

Browse files
Maxime Aoustinfacebook-github-bot
authored andcommitted
Update Podfile documentation for RN >= 0.42.0
Summary: I've updated the documentation that gives an example of Podfile adding a note that from React Native 0.42.0, users have to explicitly include Yoga in their Podfile. I didn't want to modify existing `Podfile` from this documentation because they refer to `Podfile` from existing projects that do not use RN 0.42.0. So I just added a note and an example to explain how to include Yoga. This PR is to fix the following issue: #12670 Closes #12728 Differential Revision: D4716172 Pulled By: hramos fbshipit-source-id: 12a6e61b0d426c776a7cc2dea3ac22a50ffe56ef
1 parent 6eb9ee2 commit 6336e4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/IntegrationWithExistingApps.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ target 'NumberTileGame' do
218218
'RCTWebSocket', # needed for debugging
219219
# Add any other subspecs you want to use in your project
220220
]
221+
# Explicitly include Yoga if you are using RN >= 0.42.0
222+
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
221223
222224
end
223225
```
@@ -243,6 +245,8 @@ target 'swift-2048' do
243245
'RCTWebSocket', # needed for debugging
244246
# Add any other subspecs you want to use in your project
245247
]
248+
# Explicitly include Yoga if you are using RN >= 0.42.0
249+
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
246250
247251
end
248252
```

0 commit comments

Comments
 (0)