mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
5d79b26011
Reviewed By: kathryngray Differential Revision: D5536048 fbshipit-source-id: 525d5a37f41671abd4b56e5a6f4b88e9af9927b8
25 lines
717 B
Java
25 lines
717 B
Java
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
package com.facebook.react.bridge;
|
|
|
|
import com.facebook.soloader.SoLoader;
|
|
|
|
public class ReactBridge {
|
|
private static boolean sDidInit = false;
|
|
public static void staticInit() {
|
|
// No locking required here, worst case we'll call into SoLoader twice
|
|
// which will do its own locking internally
|
|
if (!sDidInit) {
|
|
SoLoader.loadLibrary("reactnativejni");
|
|
sDidInit = true;
|
|
}
|
|
}
|
|
}
|