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

Rewrite examples in documentation to TypeScript (#5873) #5914

Merged
merged 9 commits into from
Apr 26, 2024

Conversation

xnameTM
Copy link
Contributor

@xnameTM xnameTM commented Apr 19, 2024

Summary

This pr adds TypeScript templates of code in the Reanimated Docs.

How is it work?

I rewrote the .jsx exercises to .tsx and I added tsx to jsx code compilation in the InteractiveExample component.

How to test this feature?

Command to change current working dictionary:

cd docs

Command to download libraries:

yarn install

Command to preview the project:

yarn start

Screenshots

Zrzut ekranu 2024-04-8 o 11 33 57 Zrzut ekranu 2024-04-8 o 11 34 26 Zrzut ekranu 2024-04-8 o 11 34 46

xnameTM and others added 2 commits April 19, 2024 11:42
## Summary
This pr adds TypeScript templates of code in the Reanimated Docs.

## How is it work?
I rewrote the `.jsx` exercises to `.tsx` and I added tsx to jsx code
compilation in the InteractiveExample component.

## How to test this feature?
Command to change current working dictionary:
> cd docs

Command to download libraries:
> yarn install

Command to preview the project:
> yarn start

# Screenshots
![Zrzut ekranu 2024-04-8 o 11 33
57](https://github.com/software-mansion/react-native-reanimated/assets/80314375/219ad5ed-681a-43a7-b962-e9fff0a739a5)
![Zrzut ekranu 2024-04-8 o 11 34
26](https://github.com/software-mansion/react-native-reanimated/assets/80314375/69e59174-0273-4c6f-a356-4c231180884b)
![Zrzut ekranu 2024-04-8 o 11 34
46](https://github.com/software-mansion/react-native-reanimated/assets/80314375/acc3a65a-50d6-453f-8a10-b808d173bffa)
@xnameTM xnameTM force-pushed the @xnameTM/convert-ts-to-js-2 branch from e6225d0 to 235719e Compare April 22, 2024 05:59
docs/src/examples/AnimatedReactionMeasure.tsx Outdated Show resolved Hide resolved
docs/src/examples/MeasureBasic.tsx Outdated Show resolved Hide resolved
docs/src/examples/SpringCarousel.tsx Outdated Show resolved Hide resolved
docs/src/examples/SpringMassCompare.tsx Outdated Show resolved Hide resolved
docs/src/examples/TimingEasingCompare.tsx Outdated Show resolved Hide resolved
docs/src/examples/UseReducedMotion.tsx Outdated Show resolved Hide resolved
docs/src/examples/ScrollTo.tsx Outdated Show resolved Hide resolved
docs/src/examples/DecayTrain.tsx Show resolved Hide resolved
docs/src/examples/AnimatedReactionBasic.jsx Outdated Show resolved Hide resolved
docs/src/components/InteractiveExample/index.tsx Outdated Show resolved Hide resolved
@xnameTM xnameTM requested a review from piaskowyk April 24, 2024 12:18
@xnameTM xnameTM added this pull request to the merge queue Apr 26, 2024
Merged via the queue into main with commit 5c350e5 Apr 26, 2024
9 checks passed
@xnameTM xnameTM deleted the @xnameTM/convert-ts-to-js-2 branch April 26, 2024 09:09
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.

2 participants