forcedotcom / SalesforceMobileSDK-Templates

BSD 3-Clause "New" or "Revised" License
52 stars 56 forks source link

React Native Template does not have auto linking for ios #273

Closed lchnnl closed 3 years ago

lchnnl commented 4 years ago

When creating a new react-native app using forcereact, then the podfile does not include the necessary changes as described (here)[https://reactnative.thenativebits.com/courses/upgrading-react-native/upgrade-to-react-native-0.60/]

When I add a library using npm install --save <package-name and run pod install the newly added package is not added.

Steps to reproduce

  1. Create a new app using forcereact createWithTemplate --templaterepouri=ReactNativeTemplate
  2. Browse the folder of the app
  3. run npm install --save react-native-camera This package supports autolinking
  4. run npx pod-install

After running the last command you'll see that no pods are linked.

wmathurin commented 4 years ago

Thanks for reporting. We will take a look.

wmathurin commented 3 years ago

With this change https://github.com/forcedotcom/SalesforceMobileSDK-Templates/pull/304, forcereact generated apps will auto-link their dependencies.