Skip to content

Instantly share code, notes, and snippets.

@ManWithBear
ManWithBear / add_record_flag.sh
Created October 8, 2019 08:02
Adds -record command line argument to test run in Xcode.
#!/bin/bash
# Add -record flag to iOSUITests test run
# By default run all tests. If test name passed as argument, run tests only for this testcase
# setup destinations
export currentDirectory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Name of simulators to run tests on
@robertjpayne
robertjpayne / RCTSwiftBridgeModule.h
Last active January 17, 2024 11:43
React Native - Swift Native Modules
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
#define RCT_EXTERN_MODULE(objc_name, objc_supername) \
RCT_EXTERN_REMAP_MODULE(objc_name, objc_name, objc_supername)
#define RCT_EXTERN_REMAP_MODULE(js_name, objc_name, objc_supername) \
objc_name : objc_supername \
@end \
@interface objc_name (RCTExternModule) <RCTBridgeModule> \