Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility with Next #2852

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open

Add compatibility with Next #2852

wants to merge 39 commits into from

Conversation

m-bert
Copy link
Contributor

@m-bert m-bert commented Apr 5, 2024

Description

This PR aims to bring compatibility with Next.js apps

Test plan

Run Next.js app with Gesture Handler installed from package created from this PR.

@m-bert m-bert requested a review from piaskowyk April 5, 2024 12:19
@m-bert m-bert marked this pull request as ready for review April 8, 2024 08:03
@m-bert m-bert requested a review from j-piasecki April 8, 2024 08:04
package.json Outdated Show resolved Hide resolved
src/ReactCompat.ts Outdated Show resolved Hide resolved
src/ReactCompat.ts Outdated Show resolved Hide resolved
src/ReactNativeImports.ts Outdated Show resolved Hide resolved
src/web/handlers/FlingGestureHandler.ts Outdated Show resolved Hide resolved
src/web/handlers/LongPressGestureHandler.ts Outdated Show resolved Hide resolved
src/web/handlers/PanGestureHandler.ts Outdated Show resolved Hide resolved
src/web/handlers/TapGestureHandler.ts Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
@m-bert m-bert requested a review from j-piasecki April 8, 2024 09:31
@@ -0,0 +1,12 @@
import { findDOMNode } from 'react-dom';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe let's add a comment why this file even exists

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in f94639c.

src/ReactNativeImports.native.ts Outdated Show resolved Hide resolved
src/components/touchables/GenericTouchable.tsx Outdated Show resolved Hide resolved
@@ -52,7 +52,7 @@ export default class PanGestureHandler extends GestureHandler {
private lastY = 0;

private activateAfterLongPress = 0;
private activationTimeout = 0;
private activationTimeout: ReturnType<typeof setTimeout> | undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change in a scope of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the beginning it was, because I added node types into tsconfig. Later on I've removed them, as @j-piasecki suggested (now we have @ts-ignore, if you see better option - I'd be glad to hear it).

I brought back old types in a2185c6.

@m-bert m-bert requested a review from piaskowyk April 9, 2024 09:13
Copy link
Member

@j-piasecki j-piasecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope you all know what you're doing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants