Skip to content

Commit

Permalink
remove unnecessary yarn.locks, update README, packages, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Jul 8, 2024
1 parent 0f8719a commit fdff613
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 10,670 deletions.
2 changes: 1 addition & 1 deletion examples/MyTVProject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"react-native-reanimated": "~3.10.1",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-video": "6.2.0",
"react-native-video": "6.3.0",
"react-native-web": "~0.19.10"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/media-console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"react-native": "npm:react-native-tvos@~0.74.2-0",
"react-native-builder-bob": "^0.18.2",
"react-native-reanimated": "~3.10.1",
"react-native-video": "6.2.0",
"react-native-video": "6.3.0",
"typescript": "~5.3.3"
},
"react-native": "src/index.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/media-console/src/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ const AnimatedVideoPlayer = (
setTimeout(() => {}),
).current;
const tapActionTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);
const [_resizeMode, setResizeMode] = useState<ResizeMode>(resizeMode);
const [_resizeMode, setResizeMode] =
useState<VideoPlayerProps['resizeMode']>(resizeMode);
const [_paused, setPaused] = useState<boolean>(paused);
const [_muted, setMuted] = useState<boolean>(muted);
const [_volume, setVolume] = useState<number>(volume);
Expand Down
5,313 changes: 0 additions & 5,313 deletions packages/media-console/yarn.lock

This file was deleted.

33 changes: 6 additions & 27 deletions packages/reanimated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![GitHub top language][9]][10]
[![Maintenance][11]][12]
[![npm][13]][14]

<!-- [![ci][1]][2] -->

Reanimated animations for `react-native-media-console`.
Expand All @@ -20,12 +21,10 @@ This package contains a `useAnimations` hook that uses `react-native-reanimated`

Run `yarn add react-native-reanimated react-native-video react-native-media-console @react-native-media-console/reanimated`

If you are using TypeScript, you will also need to run `yarn add --dev @types/react-native-video`

Then follow installation instructions
from [react-native-video][15].

## 🛠 Usag
## 🛠 Usage

```javascript
// At the top where our imports are...
Expand All @@ -34,9 +33,9 @@ import {useAnimations} from '@react-native-media-console/reanimated';

// in the component's render() function
<VideoPlayer
useAnimations={useAnimations}
source={{uri: 'https://vjs.zencdn.net/v/oceans.mp4'}}
navigator={props.navigator}
useAnimations={useAnimations}
source={{uri: 'https://vjs.zencdn.net/v/oceans.mp4'}}
navigator={props.navigator}
/>;
```

Expand All @@ -48,47 +47,27 @@ import {useAnimations} from '@react-native-media-console/reanimated';
## 🏆 Sponsors

| | |
|---------------------------|--------------------------------|
| ------------------------- | ------------------------------ |
| [![jetbrains100][18]][19] | [![englishdislogo100][20]][21] |

[1]: https://github.com/LunatiqueCoder/react-native-media-console/workflows/ci/badge.svg

[2]: https://github.com/LunatiqueCoder/react-native-media-console/actions

[3]: https://img.shields.io/badge/platforms-Android%20%7C%20iOS%20%7C%20tvOS-brightgreen.svg?style=flat-square&colorB=191A17

[4]: https://github.com/react-native-tvos/react-native-tvos

[5]: https://img.shields.io/github/issues/LunatiqueCoder/react-native-media-console

[6]: https://github.com/LunatiqueCoder/react-native-media-console/issues

[7]: https://img.shields.io/github/license/LunatiqueCoder/react-native-media-console

[8]: https://github.com/LunatiqueCoder/react-native-media-console/blob/master/LICENSE

[9]: https://img.shields.io/github/languages/top/LunatiqueCoder/react-native-media-console

[10]: https://github.com/LunatiqueCoder/react-native-media-console/search?l=typescript

[11]: https://img.shields.io/maintenance/yes/2023

[12]: https://github.com/LunatiqueCoder/react-native-media-console/graphs/contributors

[13]: https://img.shields.io/npm/v/react-native-media-console

[14]: https://www.npmjs.com/package/react-native-media-console

[15]: https://github.com/react-native-video/react-native-video

[16]: https://user-images.githubusercontent.com/55203625/159137837-4e34a8be-1cbb-48ae-9d67-99ce4922e660.gif

[17]: https://user-images.githubusercontent.com/55203625/159138065-cf3554b6-3f8b-4cab-bf94-0f3fc0b57333.gif

[18]: https://user-images.githubusercontent.com/55203625/213786907-b95dfb4b-08bf-4449-a055-72edf401da23.png

[19]: https://www.jetbrains.com/

[20]: https://user-images.githubusercontent.com/55203625/213786736-1d0226de-f810-4ece-968f-08c81c769948.png

[21]: https://englishdiscoveries.page.link/fJc4
2 changes: 1 addition & 1 deletion packages/reanimated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"react": "^18.2.0",
"react-native": "npm:react-native-tvos@~0.74.2-0",
"react-native-builder-bob": "^0.18.2",
"react-native-video": "6.2.0",
"react-native-video": "6.3.0",
"react-native-reanimated": "~3.10.1",
"typescript": "~5.3.3"
},
Expand Down
1 change: 0 additions & 1 deletion packages/reanimated/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"esModuleInterop": true,
"importsNotUsedAsValues": "error",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"lib": [
Expand Down
Loading

0 comments on commit fdff613

Please sign in to comment.