This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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> \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Have some complicated non-React widgets that manipulate DOM? | |
// Do they manage a list of DOM elements? Here's how to wrap it | |
// into a React component so you can "constantly rerender" it. | |
// A dumb non-react widget that manually manage some DOM node that | |
// represent a list of items | |
function NonReactWidget(node) { | |
this.node = node; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module '@nozbe/watermelondb' { | |
import * as Q from '@nozbe/watermelondb/QueryDescription' | |
export { default as Collection } from '@nozbe/watermelondb/Collection' | |
export { default as Database } from '@nozbe/watermelondb/Database' | |
export { default as CollectionMap } from '@nozbe/watermelondb/Database/CollectionMap' | |
export { default as Relation } from '@nozbe/watermelondb/Relation' | |
export { default as Model, associations } from '@nozbe/watermelondb/Model' | |
export { default as Query } from '@nozbe/watermelondb/Query' | |
export { tableName, columnName, appSchema, tableSchema } from '@nozbe/watermelondb/Schema' |
OlderNewer