Skip to content

Commit

Permalink
Fix for TVOS v2
Browse files Browse the repository at this point in the history
  • Loading branch information
piaskowyk committed Dec 14, 2023
1 parent 13eddee commit a7c3eb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions Example/src/screens/SwipeBackAnimation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ const App = (): JSX.Element => (
<Stack.Screen
name="ScreenB"
component={ScreenB}
options={
{
// goBackGesture: 'twoDimensionalSwipe',
}
}
options={{
goBackGesture: 'twoDimensionalSwipe',
}}
/>
<Stack.Screen name="ScreenC" component={ScreenC} />
</Stack.Navigator>
Expand Down
2 changes: 1 addition & 1 deletion cpp/RNScreensTurboModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace facebook;

namespace RNScreens {

constexpr const char MODULE_NAME[] = "RNScreensTurboModule";
const char RNScreensTurboModule::MODULE_NAME[] = "RNScreensTurboModule";

std::function<std::array<int, 2>(int)> RNScreensTurboModule::startTransitionBlock_;
std::function<void(int, double)> RNScreensTurboModule::updateTransitionBlock_;
Expand Down
2 changes: 1 addition & 1 deletion cpp/RNScreensTurboModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class RNScreensTurboModule : public jsi::HostObject {
static std::function<void(int, bool)> finishTransitionBlock_;

public:
static constexpr const char MODULE_NAME[] = "RNScreensTurboModule";
static const char MODULE_NAME[];

RNScreensTurboModule(
std::function<std::array<int, 2>(int)> startTransitionBlock,
Expand Down

0 comments on commit a7c3eb3

Please sign in to comment.