1 /* 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 */ 7 8 #include "ABI49_0_0ReactNativeConfig.h" 9 10 namespace ABI49_0_0facebook { 11 namespace ABI49_0_0React { 12 13 /** 14 * ABI49_0_0ReactNative configuration as provided by the hosting app. 15 * Provide a sub-class implementation to allow app specific customization. 16 */ ABI49_0_0ReactNativeConfig()17ABI49_0_0ReactNativeConfig::ABI49_0_0ReactNativeConfig() {} 18 ~ABI49_0_0ReactNativeConfig()19ABI49_0_0ReactNativeConfig::~ABI49_0_0ReactNativeConfig() {} 20 EmptyABI49_0_0ReactNativeConfig()21EmptyABI49_0_0ReactNativeConfig::EmptyABI49_0_0ReactNativeConfig() {} 22 getBool(const std::string & param) const23bool EmptyABI49_0_0ReactNativeConfig::getBool(const std::string ¶m) const { 24 if (param == "ABI49_0_0React_fabric:enabled_layout_animations_ios") { 25 return true; 26 } 27 return false; 28 } 29 getString(const std::string & param) const30std::string EmptyABI49_0_0ReactNativeConfig::getString(const std::string ¶m) const { 31 return ""; 32 } 33 getInt64(const std::string & param) const34int64_t EmptyABI49_0_0ReactNativeConfig::getInt64(const std::string ¶m) const { 35 return 0; 36 } 37 getDouble(const std::string & param) const38double EmptyABI49_0_0ReactNativeConfig::getDouble(const std::string ¶m) const { 39 return 0.0; 40 } 41 42 } // namespace ABI49_0_0React 43 } // namespace ABI49_0_0facebook 44