#include "NativeSampleModule.h" namespace facebook::react { NativeSampleModule::NativeSampleModule(std::shared_ptr jsInvoker) : NativeSampleModuleCxxSpec(std::move(jsInvoker)) { } double NativeSampleModule::add(jsi::Runtime &rt, double a, double b) { return a + b; } void NativeSampleModule::crash(jsi::Runtime &rt) { throw std::runtime_error("Error from native cxx module"); } } // namespace facebook::react