Files
flipper/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h
Dustin Shahidehpour 6a22d6dca9 Add docs to SKSubDesciptor
Summary: This tripped me up for a bit. Add some docs.

Reviewed By: Andrey-Mishanin

Differential Revision: D24160934

fbshipit-source-id: a36ac6b205a9edeeb0698f44476456583146907c
2020-10-07 15:44:33 -07:00

21 lines
606 B
Objective-C

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
@class SKComponentLayoutWrapper;
/**
A SKSubDescriptor is a function which knows how to expose additional data
to SKLayoutDescriptor. This class is for frameworks wanting to pass data
along through the Layout Descriptor.
The infra expects that the string returned is a JSON string.
For example: @"{\'key\': 5}"
*/
typedef NSString* (*SKSubDescriptor)(SKComponentLayoutWrapper* node);