File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ - (id)init {
9090 [[NSNotificationCenter defaultCenter ] postNotificationName: @" StopPlayActivity" object: nil ];
9191}
9292
93+ RCT_EXPORT_METHOD (clickScrollEnabled:(BOOL )isScroll) {
94+ [[NSNotificationCenter defaultCenter ] postNotificationName: @" clickScrollEnabled" object: [NSNumber numberWithBool: isScroll]];
95+ }
96+
9397// RCT_EXPORT_METHOD(showOrigImage:(NSString *)msgID) {
9498// [[NSNotificationCenter defaultCenter] postNotificationName:kShowOrigImageNotification object: msgID];
9599// }
Original file line number Diff line number Diff line change 3939
4040
4141@property (copy , nonatomic ) NSArray *initalData;
42-
4342// custom layout
4443@property (strong , nonatomic ) NSDictionary *sendBubble;
4544
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ - (id)initWithCoder:(NSCoder *)aDecoder {
118118 [[NSNotificationCenter defaultCenter ] addObserver: self selector: @selector (clickChangeHeight: ) name: @" ChangeMessageListHeightNotification" object: nil ];
119119 [[NSNotificationCenter defaultCenter ] addObserver: self selector: @selector (clickShowOrigImgView: ) name: kShowOrigImageNotification object: nil ];
120120 [[NSNotificationCenter defaultCenter ] addObserver: self selector: @selector (clickScanOrigImgView: ) name: @" DWOrigImageViewScanNotificatiom" object: nil ];
121+ [[NSNotificationCenter defaultCenter ]addObserver:self selector: @selector (clickScrollEnabled: ) name: @" clickScrollEnabled" object: nil ];
121122
122123 [self addObserver: self forKeyPath: @" bounds" options: NSKeyValueObservingOptionNew context: NULL ];
123124
@@ -496,6 +497,10 @@ - (void)clickScanOrigImgView:(NSNotification *)noti{
496497
497498}
498499
500+ - (void )clickScrollEnabled : (NSNotification *)noti {
501+ NSNumber *scrollNum = noti.object ;
502+ self.messageList .messageCollectionView .scrollEnabled = [scrollNum boolValue ];
503+ }
499504
500505- (void )awakeFromNib {
501506 [super awakeFromNib ];
You can’t perform that action at this time.
0 commit comments