Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions private/react-native-fantom/tester/src/NativeFantom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jsi::Object NativeFantom::getFabricUpdateProps(
void NativeFantom::enqueueNativeEvent(
jsi::Runtime& /*runtime*/,
std::shared_ptr<const ShadowNode> shadowNode,
std::string type,
const std::string& type,
const std::optional<folly::dynamic>& payload,
std::optional<RawEvent::Category> category,
std::optional<bool> isUnique) {
Expand Down Expand Up @@ -285,7 +285,7 @@ void NativeFantom::startJSSamplingProfiler(jsi::Runtime& /*runtime*/) {

void NativeFantom::stopJSSamplingProfilerAndSaveToFile(
jsi::Runtime& runtime,
std::string filePath) {
const std::string& filePath) {
auto* hermesRootAPI =
jsi::castInterface<hermes::IHermesRootAPI>(hermes::makeHermesRootAPI());
hermesRootAPI->disableSamplingProfiler();
Expand Down
4 changes: 2 additions & 2 deletions private/react-native-fantom/tester/src/NativeFantom.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class NativeFantom : public NativeFantomCxxSpec<NativeFantom> {
void enqueueNativeEvent(
jsi::Runtime& runtime,
std::shared_ptr<const ShadowNode> shadowNode,
std::string type,
const std::string& type,
const std::optional<folly::dynamic>& payload,
std::optional<RawEvent::Category> category,
std::optional<bool> isUnique);
Expand Down Expand Up @@ -158,7 +158,7 @@ class NativeFantom : public NativeFantomCxxSpec<NativeFantom> {

void stopJSSamplingProfilerAndSaveToFile(
jsi::Runtime& runtime,
std::string filePath);
const std::string& filePath);

void setImageResponse(
jsi::Runtime& rt,
Expand Down
Loading