Repository: ihmpavel/expo-video-player Branch: master Commit: d9a71db1e9c7 Files: 34 Total size: 73.8 KB Directory structure: gitextract_337zigfa/ ├── .eslintrc.js ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ └── feature_request.md │ └── dependabot.yml ├── .gitignore ├── .npmignore ├── .prettierrc.js ├── .vscode/ │ └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── dist/ │ ├── constants.d.ts │ ├── constants.js │ ├── index.d.ts │ ├── index.js │ ├── props.d.ts │ ├── props.js │ ├── utils.d.ts │ └── utils.js ├── example-app/ │ ├── .expo-shared/ │ │ └── assets.json │ ├── .gitignore │ ├── App.tsx │ ├── app.json │ ├── babel.config.js │ ├── package.json │ └── tsconfig.json ├── lib/ │ ├── constants.tsx │ ├── index.tsx │ ├── props.tsx │ └── utils.tsx ├── migration-1x-to-2x.md ├── package.json └── tsconfig.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .eslintrc.js ================================================ // https://robertcooper.me/post/using-eslint-and-prettier-in-a-typescript-project module.exports = { parser: '@typescript-eslint/parser', extends: [ 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:prettier/recommended', ], parserOptions: { ecmaVersion: 2020, sourceType: 'module', ecmaFeatures: { jsx: true, }, }, rules: { '@typescript-eslint/semi': ['error', 'never'], '@typescript-eslint/no-use-before-define': [ 'error', { functions: false, classes: false, variables: false, typedefs: true }, ], '@typescript-eslint/explicit-function-return-type': 0, '@typescript-eslint/prefer-interface': 0, '@typescript-eslint/interface-name-prefix': 0, '@typescript-eslint/no-non-null-assertion': 0, '@typescript-eslint/explicit-module-boundary-types': 0, '@typescript-eslint/camelcase': 0, '@typescript-eslint/ban-ts-ignore': 0, '@typescript-eslint/explicit-member-accessibility': 0, semi: 'off', eqeqeq: 'error', 'arrow-parens': ['error', 'as-needed'], 'no-use-before-define': ['error', { functions: false, classes: false, variables: false }], 'prefer-arrow-callback': 1, 'no-use-before-define': 0, 'max-len': ['warn', { code: 100, ignoreComments: true, ignorePattern: '^import .*' }], 'new-parens': 'error', 'no-bitwise': 'error', 'no-console': ['warn', { allow: ['warn', 'info', 'error'] }], 'no-caller': 'error', 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 0 }], 'quote-props': ['error', 'as-needed'], 'sort-imports-es6-autofix/sort-imports-es6': [ 2, { ignoreCase: false, ignoreMemberSort: false, memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'], }, ], 'no-irregular-whitespace': 'warn', 'react/jsx-uses-react': 'off', 'react/react-in-jsx-scope': 'off', 'react/prop-types': 'off', }, plugins: ['sort-imports-es6-autofix', 'react-hooks'], settings: { react: { version: 'detect', }, }, } ================================================ FILE: .github/FUNDING.yml ================================================ github: ihmpavel ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.md ================================================ --- name: Bug report about: Create a report to help us improve title: '' labels: bug assignees: '' --- **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error Link to reproduction on (Snack)[https://snack.expo.io/] **Expected behavior** A clear and concise description of what you expected to happen. **Additional information:** - Type: [e.g. Simulator/Expo/Snack/Real device] - Device: [e.g. iPhone X] - OS: [e.g. iOS8.1] - Package version [e.g. 1.0.0] - Expo version (in `app.json`) - Expo CLI version **Additional context** Add any other context about the problem here. **Screenshots** (if applicable) ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.md ================================================ --- name: Feature request about: Suggest an idea for this project title: '' labels: '' assignees: '' --- **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here. ================================================ FILE: .github/dependabot.yml ================================================ version: 2 updates: - package-ecosystem: npm directory: "/" schedule: interval: weekly time: "04:00" open-pull-requests-limit: 10 ================================================ FILE: .gitignore ================================================ node_modules/**/* ================================================ FILE: .npmignore ================================================ lib/ example-app/ .vscode/ .github/ .eslintrc.js .prettierrc.js tsconfig.json jest.config.js ================================================ FILE: .prettierrc.js ================================================ module.exports = { semi: false, useTabs: false, trailingComma: "es5", singleQuote: true, printWidth: 100, tabWidth: 2, arrowParens: "avoid", jsxSingleQuote: true }; ================================================ FILE: .vscode/settings.json ================================================ { "typescript.tsdk": "node_modules\\typescript\\lib", "eslint.autoFixOnSave": true, "eslint.validate": [ "javascript", "javascriptreact", { "language": "typescript", "autoFix": true }, { "language": "typescriptreact", "autoFix": true } ], "editor.formatOnSave": true, "[javascript]": { "editor.formatOnSave": false, }, "[javascriptreact]": { "editor.formatOnSave": false, }, "[typescript]": { "editor.formatOnSave": false, }, "[typescriptreact]": { "editor.formatOnSave": false, }, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, } ================================================ FILE: CHANGELOG.md ================================================ # ChangeLog ## 2.2.0 (September 29, 2022) - Fix: Prevent accidental pressing of buttons in overlay header when the overlay is not visible by [@lpezzolla](https://github.com/lpezzolla) [#724](https://github.com/ihmpavel/expo-video-player/pull/724) - Fix: Use fullscreen icons passed in props as an alternative to package-defined icons by [@lpezzolla](https://github.com/lpezzolla) [#727](https://github.com/ihmpavel/expo-video-player/pull/727) ## 2.1.0 (June 24, 2022) - Enhancements: Updated packages and bumped Expo SDK version - Enhancements: Added `mute` functionality ## 2.0.4 (January 24, 2021) - Fix: Replay icon on iOS [#469](https://github.com/ihmpavel/expo-video-player/issues/469) ## 2.0.3 (December 8, 2021) - Fix: Rebuild app to include `header` on top of the component instead of bottom ## 2.0.2 (December 4, 2021) - Enhancements: Updated packages and bumped Expo SDK version - Enhancements: Added `autoHidePlayer` by [@hungvu193](https://github.com/hungvu193) [#506](https://github.com/ihmpavel/expo-video-player/pull/506) - Enhancements: Added `header` by [@Qeepsake](https://github.com/Qeepsake) [#516](https://github.com/ihmpavel/expo-video-player/pull/516) ## 2.0.1 (June 27, 2021) - Fix: Expo Web [#433](https://github.com/ihmpavel/expo-video-player/issues/433) ## 2.0.0 (June 20, 2021) - Rewritten, simplified - If you are upgrading from version `1.x`, please check [Migration guide to version 2](https://github.com/ihmpavel/expo-video-player/blob/master/migration-1x-to-2x.md) ## 1.6.1 (October 10, 2020) - Enhancements: Updated packages and bumped Expo SDK version ## 1.6.0 (August 19, 2020) - Fix: Renamed iosThumbImage to thumbImage - Enhancements: Remove deprecated Slider in favor of [community version](https://github.com/react-native-community/react-native-slider) - Enhancements: Added videoRef prop ## 1.5.8 (May 6, 2020) - Enhancements: Allow disabling Slider ## 1.5.7 (January 31, 2020) - Fix: Revert removing depracated Slider from RN Core ## 1.5.6 (January 29, 2020) - Fix: Switch inFullscreen logic - Enhancements: Remove deprecated Slider ## 1.5.5 (January 1, 2020) - Happy new Year 🎉 - Fix: Simplify logic ## 1.5.4 (December 29, 2019) - Fix: Building ## 1.5.3 (December 29, 2019) - Fix: TypeScript types - Enhancements: Updated README ## 1.5.2 (December 20, 2019) - Enhancements: Expo SDK 36 - Enhancements: Updated README ## 1.5.1 (September 30, 2019) - Fix: Play/Pause icon clicking ## 1.5.0 (August 27, 2019) - Enhancements: Human readable debug - Enhancements: Renamed `isPortrait` to `inFullscreen` - Fix: Removed buggy internet status debug ## 1.4.0 (August 27, 2019) - Enhancement: Added width/height props to `