Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all 16537 articles
Browse latest View live

Building an iOS iPad app on React Native without an iPad

$
0
0

This is a theory question.

Would it be possible to create a react native app directed for iPad, without having an iPad or iPhone or any iOS device?

For example, with an emulator like BrowserStack, and in that case, how would that work?

I'm used to changing something in the style and just see it on a real device. If I use an emulator like the one I said, do I need to deploy the app before being able to test it? That would be so slow, I think it's nearly impossible.

So, does browserstack or any other emulator give me some kind of debug mode? Is there anyway to achieve this?

How would you develop a react native app for iPad without a physical iPad? Is it possible?


How to bridge Swift View in ObjectC for React Native

$
0
0

I'am new in this Objc and Swift. I need some small example. I dont know what search.

Objective C very complicated for me.

Can anyone give any simple example, how in Objective C import Swift View as react-native module?

//this is swift fileimport SwiftUIstruct SwiftUIView: View {    var body: some View {        Text("Hello, World!")    }}
//i need use RCTView and RCTViewManager somehow in ObjectiveC files

Please give some example how import SwiftUIView or any other View from Swift to ObjectCand add export as RCTView

Full screen background image on loginscreen in React Native app

$
0
0

I'm currently trying to set a full background image on my login view.

I've used the following code to do so but noticed that Iphone 11 have like a white bar at the bottom and top of the phone. Is this something that can't be overlapped since it's like the navigation?

const Background = styled.ImageBackground`padding:20px;justify-content:center;width:100%;height:100%;`const styles = StyleSheet.create({        container: {          flex: 1,        },      });

enter image description here

   return <SafeAreaView style={styles.container}><Background source={require('../../assets/images/background-cover.jpg')}><CoverLogo width={100} height={100} color={Colors.White} /><Introduction loop={false}><TextHeading text={`#test`} /><TextPage text={`Btest2`} /><TextPage text={`Ttest3`} /><TextPage text={`test4 Sign up !`} /></Background></SafeAreaView>

Saving a base64 pdf string is not readable/invalid outside the expo-react native app

$
0
0

I tried saving a base64 pdf string to a pdf file and want to view this outside the app as a document.

import * as FileSystem from 'expo-file-system';import * as Sharing from 'expo-sharing';const hellopdf="data:application/pdf;base64,JVBERi0xLjcKCjEgMCBvYmogICUgZW50cnkgcG9pbnQKPDwKICAvVHlwZSAvQ2F0YWxvZwogIC9QYWdlcyAyIDAgUgo+PgplbmRvYmoKCjIgMCBvYmoKPDwKICAvVHlwZSAvUGFnZXMKICAvTWVkaWFCb3ggWyAwIDAgMjAwIDIwMCBdCiAgL0NvdW50IDEKICAvS2lkcyBbIDMgMCBSIF0KPj4KZW5kb2JqCgozIDAgb2JqCjw8CiAgL1R5cGUgL1BhZ2UKICAvUGFyZW50IDIgMCBSCiAgL1Jlc291cmNlcyA8PAogICAgL0ZvbnQgPDwKICAgICAgL0YxIDQgMCBSIAogICAgPj4KICA+PgogIC9Db250ZW50cyA1IDAgUgo+PgplbmRvYmoKCjQgMCBvYmoKPDwKICAvVHlwZSAvRm9udAogIC9TdWJ0eXBlIC9UeXBlMQogIC9CYXNlRm9udCAvVGltZXMtUm9tYW4KPj4KZW5kb2JqCgo1IDAgb2JqICAlIHBhZ2UgY29udGVudAo8PAogIC9MZW5ndGggNDQKPj4Kc3RyZWFtCkJUCjcwIDUwIFRECi9GMSAxMiBUZgooSGVsbG8sIHdvcmxkISkgVGoKRVQKZW5kc3RyZWFtCmVuZG9iagoKeHJlZgowIDYKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDEwIDAwMDAwIG4gCjAwMDAwMDAwNzkgMDAwMDAgbiAKMDAwMDAwMDE3MyAwMDAwMCBuIAowMDAwMDAwMzAxIDAwMDAwIG4gCjAwMDAwMDAzODAgMDAwMDAgbiAKdHJhaWxlcgo8PAogIC9TaXplIDYKICAvUm9vdCAxIDAgUgo+PgpzdGFydHhyZWYKNDkyCiUlRU9G" const saveFile = async () => {      let fileUri = FileSystem.documentDirectory +"sairam1.pdf";      await FileSystem.writeAsStringAsync(fileUri, hellopdf, { encoding: FileSystem.EncodingType.UTF8 });      if(Sharing.isAvailableAsync()){        Sharing.shareAsync(fileUri) //this pops share options, we can save to files       }

I can see the file saved in files but, it doesn't contain any text.

I can only see the text"PDF Document,43 bytes"

Is there anything I can do formatting or any other libraries to use??

Environment: react-native, expo, IOS

enter image description here

How do you hide the warnings in React Native iOS simulator?

$
0
0

I just upgraded my React Native and now the iOS simulator has a bunch of warnings. Besides fixing them, how do I hide these warnings so that I can see what's underneath?

Open screen is not working with the line below

$
0
0

I have one component, he open a modal...

App.js

import ScreenModal from './ScreenModal';return (<View><TouchableOpacity onPress={ScreenModal}><Text>Click</Text></TouchableOpacity></View>);

ScreenModal.js

function getModal() {    return (<Modal isVisible={true}><Text>Teste</Text></Modal>    )}

He not open a modal (ScreenModal). where it is the error?

obs.: I have a custom modal

Testflight new build version uploading to Apple account and appearing, but the version is empty

$
0
0

example

As seen in the picture, the build versions appear in the Testflight tab but there is nothing to do with the builds, they are just empty with nothing in them. Transporter said they were delivered and they were, but I can't interact with them. Even tried looking at the Appstore tab to submit and choose which version, the new versions appear but it says there are no builds available under them. Not sure why this is happening or how to fix.

SImulating location with gpx file on expo app using iOS simulator

$
0
0

I would like to input a gpx file into the iOS simulator to simulate driving along a route. However, in order to do that, I need to add a gpx file to my xcode project. The project I'm using was made using expo, so I cannot open it in xcode. Is there any workaround to be able to simulate the route without opening in xcode?


Swift._ArrayBuffer._copyContents on Xcode

$
0
0
"Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int)", referenced from:      generic specialization <serialized, Swift._ArrayBuffer<Swift.Int8>> of Swift._copyCollectionToContiguousArray<A where A: Swift.Collection>(A) -> Swift.ContiguousArray<A.Element> in libAlamofire.a(NetworkReachabilityManager.o)ld: symbol(s) not found for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)

I upgrade Xcode 12.5 with ios 14.5 version. and I tried to excute my app...and I got an above problem... I don't know how to solve this problem. does anyone who solve this ???

React Native CodePush update issue

$
0
0

I have configured react-native-codepush in my react-native project.

When i release an update in the appcenter I can see the release history but after the release when I reopen the app for the first time I could not see any update but when I reopen the app for the second time then I am able to see the updates.

Can anyone please help me as to why the app is not getting updated when I open the app for the first time after release the update.

I have added below code check.

const codePushOptions = { checkFrequency: codePush.CheckFrequency.ON_APP_START, installMode: codePush.InstallMode.IMMEDIATE};export default codePush(codePushOptions)(App);

Thanks in advance.

How to achieve PageCurl(page turn) transition in React Native

$
0
0

In iOS you can use the PageCurl transition style on a UIPageViewController to have the same page curl effect as iBooks in iOS.

Is there a way to use the PageCurl transition effect on a React Native view?

Mapbox React Native Ios

$
0
0

Just wondering if anyone is familiar with this error after installing '@react-native-mapbox-gl/maps' into an Ios React Native app.

I've installed and updated the Podfile as instructed and am using the latest 8.02beta version of the npm library.

  Referenced from: /Users/benjaminwatts/Library/Developer/CoreSimulator/Devices/B9E73FD7-5C1C-4F93-AA54-D779ED8381AE/data/Containers/Bundle/Application/FC4BA852-160C-4E9F-8601-3EBFAE4AAD26/hillbaggermobile.app/Frameworks/Mapbox.framework/Mapbox  Reason: image not founddyld: launch, loading dependent librariesDYLD_SHARED_CACHE_DIR=/Users/benjaminwatts/Library/Developer/CoreSimulator/Caches/dyld/19H524/com.apple.CoreSimulator.SimRuntime.iOS-14-4.18D46DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRootDYLD_LIBRARY_PATH=/Users/benjaminwatts/Library/Developer/Xcode/DerivedData/hillbaggermobile-epwacafnlywpvtfyuoeyrsvpsnos/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspectionDYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Libra(lldb) 

I suspect there is a missing native dependency for Mapbox which I am not aware of, but just wondering if anyone is familiar

dyld: Library not loaded: @rpath/glog.framework/glog and app not opening

$
0
0

I have follow problem, somebody to help me. When I run by Xcode 12.4 show me follow error and app not open:

dyld: Library not loaded: @rpath/glog.framework/glog Referenced from: /Users/hugofv/Library/Developer/CoreSimulator/Devices/....../data/Containers/Bundle/Application/....../......app/.... Reason: image not found dyld: launch, loading dependent libraries DYLD_SHARED_CACHE_DIR=/Users/hugofv/Library/Developer/CoreSimulator/Caches/dyld/20E232/com.apple.CoreSimulator.SimRuntime.iOS-13-3.17C45 DYLD_ROOT_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 13.3.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/hugofv/Library/Developer/Xcode/DerivedData/ArtMe-azduvkqrxsfdfmgyrnagtfphohqs/Build/Products/Debug-iphonesimulator:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 13.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 13.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 13.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 13.3.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framewor

And when I run by Command Line the app not opening, It's open and close without show error.

Firebase & iOS 14 > Will dynamic links tracking and campaigns continue to work?

$
0
0

As most of you are probably aware of, iOS 14 will basically put an end to app acquisition tracking as we know it.

Here are two great articles that explore the issue in length:

Putting aside the critical changes most people will have to make to their business models, my question has to do with Firebase's dynamic links in particular.

Since they basically rely on copying a link in the pasteboard, I already know they might now trigger a warning banner —although the Firebase team has apparently been proactive with this matter.

What I don't know at this point is whether they will continue to work or not when users disallow ad tracking.

My team and I have tried building one of our React Native apps with XCode 12 beta on a simulator running iOS 14, but haven't been able to retrieve any value from the dynamic links — whereas it currently works with iOS 13. There might be other factors at play though, so it's difficult to draw our own conclusions at this point.

My questions, provided that the users have opted out of tracking:

  1. Will we still be able to read the dynamic link url in-app?
  2. Will Google Analytics still receive the UTM parameters and get campaigns' results?
  3. If the answer is no to any of these questions, what are the workarounds or third-party solutions you've found?

Your insights will be greatly appreciated!

Using fastlane match gives me: your developer account needs to be updated

$
0
0

I'm using fastlane in my react native app. I am following the documentation in https://docs.fastlane.tools/getting-started/ios/setup/ and everythinhg works fine here. I use the command "fastlane match" and it also works, but "fastlane match appstore" gives me "your developer account needs to be updated".

Is there anything account related that needs to be done to fix this? There is just a bit of information about it


getting stuck with expo-notifications

$
0
0

I am trying to add notifications to my react native application .

i am not using eject

So i had to use expo-notifications library and all working fine.

from this project: github code

But it's in typescript and when i did implement it to my code it didn't work.

I tried almost anything i found in my way but nothing else worked except this code, any way to add it to

my app, or suggest me a working notification code please.

My App.js code :

/** @format */import React from "react";import { Font } from "@expo";import { Provider } from "react-redux";import { persistStore } from "redux-persist";import { PersistGate } from "redux-persist/es/integration/react";import store from "@store/configureStore";import RootRouter from "./src/Router";import "./ReactotronConfig";function cacheFonts(fonts) {  return fonts.map((font) => Font.loadAsync(font));}export default class App extends React.Component {  loadAssets = async () => {    const fontAssets = cacheFonts([      { OpenSans: require("@assets/fonts/OpenSans-Regular.ttf") },      { Baloo: require("@assets/fonts/Baloo-Regular.ttf") },      { Entypo: require("@expo/vector-icons/fonts/Entypo.ttf") },      {"Material Icons": require("@expo/vector-icons/fonts/MaterialIcons.ttf"),      },      {        MaterialCommunityIcons: require("@expo/vector-icons/fonts/MaterialCommunityIcons.ttf"),      },      {"Material Design Icons": require("@expo/vector-icons/fonts/MaterialCommunityIcons.ttf"),      },      { FontAwesome: require("@expo/vector-icons/fonts/FontAwesome.ttf") },      {"simple-line-icons": require("@expo/vector-icons/fonts/SimpleLineIcons.ttf"),      },      { Ionicons: require("@expo/vector-icons/fonts/Ionicons.ttf") },    ]);    // const imageAssets = cacheImages([    //   Images.icons.iconCard,    //   Images.icons.iconColumn,    //   Images.icons.iconLeft,    //   Images.icons.iconRight,    //   Images.icons.iconThree,    //   Images.icons.iconAdvance,    //   Images.icons.iconHorizal,    //   Images.icons.back,    //   Images.icons.home,    //   Images.IconSwitch,    //   Images.IconFilter,    //   Images.IconList,    //   Images.IconGrid,    //   Images.IconCard,    //   Images.IconSearch,    //   Images.IconHome,    //   Images.IconCategory,    //   Images.IconHeart,    //   Images.IconOrder,    //   Images.IconCart,    // ]);    await Promise.all([...fontAssets]);  };  componentDidMount() {    this.loadAssets();  }  render() {    const persistor = persistStore(store);    return (<Provider store={store}><PersistGate loading={null} persistor={persistor}><RootRouter /></PersistGate></Provider>    );  }}

PS: am using sdk 39, and i want the notification to be working on android and ios.

thanks for your time.

React Native Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65. The problem is with all projects

$
0
0

I am getting following Error when try to run any project with React-native run-ios:

I have already tried all solutions from this and many more but nothing works.

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening proj.xcworkspace. Run CLI with --verbose flag for more details.

Command line invocation:/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace proj.xcworkspace -configuration Debug -scheme proj -destination id=13B67855-76F9-4755-A1A5-7B5AEBC6D1C5

User defaults from command line:IDEPackageSupportUseBuiltinSCM = YES

Prepare buildwarning: The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Workspace Settings.=== BUILD TARGET glog OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

Libtool /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/glog/libglog.a normal x86_64cd /Users/user/Work/weber/mobile-app/proj-mobile/ios/Podsexport IPHONEOS_DEPLOYMENT_TARGET=10.0export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/user/Library/Android/sdk/tools:/Users/user/Library/Android/sdk/platform-tools"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/glog -filelist /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/glog.LinkFileList -o /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/glog/libglog.a

=== BUILD TARGET DoubleConversion OF PROJECT Pods WITH CONFIGURATION Debug ===Check dependencies

Libtool /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/DoubleConversion/libDoubleConversion.a normal x86_64cd /Users/user/Work/weber/mobile-app/proj-mobile/ios/Podsexport IPHONEOS_DEPLOYMENT_TARGET=10.0export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/user/Library/Android/sdk/tools:/Users/user/Library/Android/sdk/platform-tools"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/DoubleConversion -filelist /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/DoubleConversion.LinkFileList -o /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/DoubleConversion/libDoubleConversion.a

=== BUILD AGGREGATE TARGET boost-for-react-native OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET React-Core-AccessibilityResources OF PROJECT Pods WITH CONFIGURATION Debug ===Check dependencies

ProcessInfoPlistFile /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/React-Core/AccessibilityResources.bundle/Info.plist Target\ Support\ Files/React-Core/ResourceBundle-AccessibilityResources-React-Core-Info.plistcd /Users/user/Work/weber/mobile-app/proj-mobile/ios/Podsexport PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/user/Library/Android/sdk/tools:/Users/user/Library/Android/sdk/platform-tools"builtin-infoPlistUtility /Users/user/Work/weber/mobile-app/proj-mobile/ios/Pods/Target\ Support\ Files/React-Core/ResourceBundle-AccessibilityResources-React-Core-Info.plist -expandbuildsettings -format binary -platform iphonesimulator -o /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/React-Core/AccessibilityResources.bundle/Info.plist

ProcessProductPackaging "" /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Pods.build/Debug-iphonesimulator/React-Core-AccessibilityResources.build/AccessibilityResources.bundle-Simulated.xcentcd /Users/user/Work/weber/mobile-app/proj-mobile/ios/Podsexport PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/user/Library/Android/sdk/tools:/Users/user/Library/Android/sdk/platform-tools"

Why is Linking.getInitialURL always returning null?

$
0
0

I'm successfully using deep linking to open my app from a share extension. If the app is already running, then I get the information in ComponentDidMount using Linking.addEventListener('url', this.handleOpenURL);

If the app isn't already running, I expect to be able to use Linking.getInitialURL(); per the docs (https://facebook.github.io/react-native/docs/linking). Except it is always coming up null for me. The link is how my app is being opened, but no matter what, comes out as null. I have that code in componentDidMount in App.js.

I'm on react-native 59.2.

Here is my AppDelegate.m

#import "AppDelegate.h"#import <React/RCTBundleURLProvider.h>#import <React/RCTRootView.h>#import <React/RCTLinkingManager.h>@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{  NSURL *jsCodeLocation;  jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];  RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation                                                      moduleName:@"MYMODULENAME"                                               initialProperties:nil                                                   launchOptions:launchOptions];  rootView.backgroundColor = [UIColor blackColor];  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];  UIViewController *rootViewController = [UIViewController new];  rootViewController.view = rootView;  self.window.rootViewController = rootViewController;  [self.window makeKeyAndVisible];  return YES;}- (BOOL)application:(UIApplication *)application            openURL:(NSURL *)url            options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{  return [RCTLinkingManager application:application openURL:url options:options];}- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler{  return [RCTLinkingManager application:application                   continueUserActivity:userActivity                     restorationHandler:restorationHandler];}@end

If the app is already running in background, getInitialURL() returns the link that launched it, otherwise I get null. I expect to get the link that launched the app even if it wasn't running.

Use local framework in podspec

$
0
0

I added a framework to my React Native iOS project by adding it to the Frameworks folder and making sure it's in our Target -> Build Phases -> Link Binary with Libraries. I added some code to the AppDelegate that uses the framework and everything seemed to compile and run correctly.

Now I want to use that framework in a custom native module we created. We created the library using create-react-native-library, and install it with yarn and pod install. The library compiles and works fine when we don't try to import the framework in our .swift file. However, as soon as we try to import the framework, it fails to compile and says there's "No Such Module 'TheFramework'". I think we need to change our podspec for it to work.

Some things I tried that did not work:

s.dependency "TheFramework" # can't use the public version, need to use the local ones.dependency "TheFramework", :path => '../../ios/TheFramework.framework' # fails to pod install - "Podspecs cannot specify the source of dependencies. The `:path` option is not supported. `:path` can be used in the Podfile instead to override global dependencies."s.vendored_frameworks = "TikTokOpenSDK.framework" # fails to compile - "No such module 'TheFramework'"

node_modules/react-native-vector-icons/lib/create-icon-set.js: # could not be cloned

$
0
0

I'm using "react-native-vector-icons": "^8.1.0", and I got this error node_modules/react-native-vector-icons/lib/create-icon-set.js: #<WeakSet> could not be cloned. with iOS, any idea?

Thanks!

Viewing all 16537 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>