ios-library

React Native: Unable to import React headers after updating to 0.60

空扰寡人 提交于 2020-03-12 06:00:20
问题 After updating to React Native 0.60 the header linking does no longer work. I'm having problems linking from the React library during build: /Users/User/Developer/Project/node_modules/react-native-image-resizer/ios/RCTImageResizer/RCTImageResizer.m:12:9: fatal error: 'React/RCTImageLoader.h' file not found #import <React/RCTImageLoader.h> ^~~~~~~~~~~~~~~~~~~~~~~~ What changed in 0.60 : The file RCTImageLoader.h is now at /node_modules/react-native/React/CoreModules . The file React.xcodeproj

React Native: Unable to import React headers after updating to 0.60

时光毁灭记忆、已成空白 提交于 2020-03-12 06:00:08
问题 After updating to React Native 0.60 the header linking does no longer work. I'm having problems linking from the React library during build: /Users/User/Developer/Project/node_modules/react-native-image-resizer/ios/RCTImageResizer/RCTImageResizer.m:12:9: fatal error: 'React/RCTImageLoader.h' file not found #import <React/RCTImageLoader.h> ^~~~~~~~~~~~~~~~~~~~~~~~ What changed in 0.60 : The file RCTImageLoader.h is now at /node_modules/react-native/React/CoreModules . The file React.xcodeproj

How to make an universal iOS library for both Objective-C and Swift?

时间秒杀一切 提交于 2019-12-03 09:59:28
问题 I need to make an library for iOS (either Framework or static library - I haven't decided yet) that can be used in both Objective-C and Swift projects. What is the best way of doing this? The way I see it I have three options: Write the library in Objective-C and add support for Swift (bridging headers etc). Write the library in Swift and add support for Objective-C. Write two libraries, both in Objective-C and Swift. I really want to avoid this option. The main requirement here is that it

How to make an universal iOS library for both Objective-C and Swift?

戏子无情 提交于 2019-12-03 00:36:59
I need to make an library for iOS (either Framework or static library - I haven't decided yet) that can be used in both Objective-C and Swift projects. What is the best way of doing this? The way I see it I have three options: Write the library in Objective-C and add support for Swift (bridging headers etc). Write the library in Swift and add support for Objective-C. Write two libraries, both in Objective-C and Swift. I really want to avoid this option. The main requirement here is that it should be as easy for developers to use as possible. Ideally, they should be able to choose their

Is iOS state restoration possible in iOS library? — Could not find a storyboard named

試著忘記壹切 提交于 2019-12-02 00:55:29
问题 I have a library with a storyboard and controller classes that implement iOS state preservation. To launch the library from the main app's delegate, I use the following: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds]; [self.window makeKeyAndVisible]; self.window.rootViewController = myLibrary.sharedInstance.firstController; return YES; } Then inside my