flagship-io / flagship-react-native-sdk

Official Flagship (by AB Tasty) REACT NATIVE SDK ⛵️
5 stars 1 forks source link

[iOS] React-native-cli example build error #61

Closed fdobre closed 1 year ago

fdobre commented 1 year ago

Steps:

  1. Install dependencies for react-native-cli example
  2. Run npx react-native run-ios --simulator="iPhone 14"
ios/reactnativeqa/AppDelegate.m:52:49: no visible @interface for 'RCTBundleURLProvider' declares the selector 'jsBundleURLForBundleRoot:fallbackResource:'

  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
Heihokon commented 1 year ago

Hello @fdobre, Please use this example https://github.com/flagship-io/flagship-react-native-sdk/tree/master/qa-app instead

fdobre commented 1 year ago

@Heihokon Thank you, the rn-cli example uses "@flagship.io/react-native-sdk": "^2.1.6-alpha.1",. The one from the link you provided uses "^3.0.1", ! That is very helpful!

Heihokon commented 1 year ago

Thanks you're welcome