@@ -172,10 +172,10 @@ -(void)insertTextEmoji:(NSDictionary *)rnImageData{
172172 self.typingAttributes = self.textInput .typingAttributes ;
173173 EmojiTextAttachment *emojiTextAttachment = [EmojiTextAttachment new ];
174174 // Set tag and image
175- emojiTextAttachment.emojiTag = rnImageData[@" tag " ];
175+ emojiTextAttachment.emojiTag = rnImageData[@" emojiTag " ];
176176 UIImage *image =[RCTConvert UIImage: rnImageData[@" img" ]];
177- emojiTextAttachment.showCopyStr =rnImageData[@" tag " ];
178- if ([self isOutMaxLength: rnImageData[@" tag " ]]) {
177+ emojiTextAttachment.showCopyStr =rnImageData[@" emojiTag " ];
178+ if ([self isOutMaxLength: rnImageData[@" emojiTag " ]]) {
179179 return ;
180180 }
181181 emojiTextAttachment.image = image;
@@ -225,13 +225,13 @@ -(void)setAttributedText:(NSArray *)arr{
225225 [attStr appendAttributedString: normMutaStr];
226226 }
227227 if (type == 1 ){
228- NSDictionary *rnImageData = [RCTConvert NSDictionary: dic[ @" emojiData " ]] ;
228+ NSDictionary *rnImageData = dic;
229229 EmojiTextAttachment *emojiTextAttachment = [EmojiTextAttachment new ];
230230 // Set tag and image
231- emojiTextAttachment.emojiTag = rnImageData[@" tag " ];
231+ emojiTextAttachment.emojiTag = rnImageData[@" emojiTag " ];
232232 UIImage *image =[RCTConvert UIImage: rnImageData[@" img" ]];
233- emojiTextAttachment.showCopyStr =rnImageData[@" tag " ];
234- if ([self isOutMaxLength: rnImageData[@" tag " ]]) {
233+ emojiTextAttachment.showCopyStr =rnImageData[@" emojiTag " ];
234+ if ([self isOutMaxLength: rnImageData[@" emojiTag " ]]) {
235235 return ;
236236 }
237237 emojiTextAttachment.image = image;
@@ -241,7 +241,7 @@ -(void)setAttributedText:(NSArray *)arr{
241241 [attStr appendAttributedString: str];
242242 }
243243 if (type == 2 ){
244- NSDictionary *mention =[RCTConvert NSDictionary: dic[ @" targData " ]] ;
244+ NSDictionary *mention =dic;
245245 NSString *tag = [RCTConvert NSString: mention[@" tag" ]];
246246 NSString *name =[RCTConvert NSString: mention[@" name" ]];
247247 UIColor *color = [RCTConvert UIColor: mention[@" color" ]];
0 commit comments