mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	feat: support for new architecture
This commit is contained in:
		| @@ -1,7 +1,10 @@ | ||||
| #import "RCTPushy.h" | ||||
| #import "RCTPushyDownloader.h" | ||||
| #import "RCTPushyManager.h" | ||||
|  | ||||
| // Thanks to this guard, we won't import this header when we build for the old architecture. | ||||
| #ifdef RCT_NEW_ARCH_ENABLED | ||||
| #import "RNUpdateSpec.h" | ||||
| #endif | ||||
|  | ||||
| #import <React/RCTConvert.h> | ||||
| #import <React/RCTLog.h> | ||||
| @@ -562,4 +565,13 @@ RCT_EXPORT_METHOD(markSuccess) | ||||
| #endif | ||||
| } | ||||
|  | ||||
| // Thanks to this guard, we won't compile this code when we build for the old architecture. | ||||
| #ifdef RCT_NEW_ARCH_ENABLED | ||||
| - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule: | ||||
|     (const facebook::react::ObjCTurboModule::InitParams &)params | ||||
| { | ||||
|     return std::make_shared<facebook::react::NativeCalculatorSpecJSI>(params); | ||||
| } | ||||
| #endif | ||||
|  | ||||
| @end | ||||
|   | ||||
| @@ -1 +1 @@ | ||||
| 1674743151 | ||||
| 1676798137 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 steven
					steven