react-native-navigation的迁移库

TextParser.m 246B

123456789101112
  1. #import "TextParser.h"
  2. #import "NullText.h"
  3. #import <React/RCTConvert.h>
  4. @implementation TextParser
  5. + (Text *)parse:(NSDictionary *)json key:(NSString *)key {
  6. return json[key] ? [[Text alloc] initWithValue:json[key]] : [NullText new];
  7. }
  8. @end