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

feat: add typescript #3266

Merged
merged 10 commits into from
Oct 6, 2023
Merged

feat: add typescript #3266

merged 10 commits into from
Oct 6, 2023

Conversation

KrzysztofMoch
Copy link
Member

Summary

This PR add built-in types and configuration for typescript. It is also step to prepare for new architecture support (codegen). Changes and types are based on New Arch PR by @yungblud

Why is needed ?

With built-in types we have up to date types on every version and we don't need to install an rely on additional package for types @types/react-native-video. Overall built-in types increase the comfort of both developers and maintainers.
But @types/react-native-video should stay to support older versions of react-native-video

How to test ?

  1. Checkout for branch of PR
  2. Install dependencies
  3. Run yarn build
  4. update dependencies in (basic) example app
  5. Check if types are correctly imported
  6. Example app should build and run
  7. Types for Video component should be available

src/types/video.ts Outdated Show resolved Hide resolved
src/VideoNativeComponent.ts Outdated Show resolved Hide resolved
src/VideoNativeComponent.ts Outdated Show resolved Hide resolved
src/VideoNativeComponent.ts Outdated Show resolved Hide resolved
src/VideoNativeComponent.ts Outdated Show resolved Hide resolved
src/VideoNativeComponent.ts Outdated Show resolved Hide resolved
src/VideoNativeComponent.ts Outdated Show resolved Hide resolved
src/VideoNativeComponent.ts Outdated Show resolved Hide resolved
src/VideoNativeComponent.ts Outdated Show resolved Hide resolved
src/VideoNativeComponent.ts Outdated Show resolved Hide resolved
@freeboub
Copy link
Collaborator

freeboub commented Oct 3, 2023

Great 👍 a lot of minor comments but looks good

@KrzysztofMoch KrzysztofMoch requested a review from freeboub October 5, 2023 06:17
@freeboub
Copy link
Collaborator

freeboub commented Oct 5, 2023

sorry @KrzysztofMoch I merge the DRM PR, so there are conflict with this one ...

@freeboub freeboub merged commit 92831af into TheWidlarzGroup:master Oct 6, 2023
1 check failed
@freeboub freeboub mentioned this pull request Oct 6, 2023
@KrzysztofMoch KrzysztofMoch deleted the feat/add-typescript branch October 7, 2023 12:31
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