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
This commit is contained in:
Dustin Shahidehpour
2020-10-07 15:40:39 -07:00
committed by Facebook GitHub Bot
parent 7711502413
commit 6a22d6dca9
2 changed files with 3 additions and 6 deletions

View File

@@ -13,5 +13,8 @@
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);

View File

@@ -1,6 +0,0 @@
/*
* 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.
*/