"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7688/ios/sdk/src/RNRootView.m" (1 Dec 2023, 1537 Bytes) of package /linux/misc/jitsi-meet-7688.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Matlab source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * Copyright @ 2019-present 8x8, Inc.
    3  *
    4  * Licensed under the Apache License, Version 2.0 (the "License");
    5  * you may not use this file except in compliance with the License.
    6  * You may obtain a copy of the License at
    7  *
    8  *     http://www.apache.org/licenses/LICENSE-2.0
    9  *
   10  * Unless required by applicable law or agreed to in writing, software
   11  * distributed under the License is distributed on an "AS IS" BASIS,
   12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13  * See the License for the specific language governing permissions and
   14  * limitations under the License.
   15  */
   16 
   17 #import <React/RCTRootContentView.h>
   18 #import <React/RCTLog.h>
   19 
   20 #import "RNRootView.h"
   21 
   22 @implementation RNRootView
   23 
   24 // Monkey-patch RCTRootView.runApplication to avoid logging initial props.
   25 - (void)runApplication:(RCTBridge *)bridge
   26 {
   27     NSString *moduleName = [self valueForKey:@"_moduleName"] ?: @"";
   28     RCTRootContentView *_contentView = [self valueForKey:@"_contentView"];
   29     NSNumber *reactTag = [_contentView valueForKey:@"reactTag"];
   30 
   31     NSDictionary *appParameters = @{
   32                                     @"rootTag": reactTag,
   33                                     @"initialProps": self.appProperties ?: @{},
   34                                     };
   35 #if DEBUG
   36     RCTLogInfo(@"Running application %@ (%@)", moduleName, appParameters);
   37 #endif
   38 
   39     [bridge enqueueJSCall:@"AppRegistry"
   40                    method:@"runApplication"
   41                      args:@[moduleName, appParameters]
   42                completion:NULL];
   43 }
   44 
   45 @end