{"_id":"@alexbridey/react-native-video","name":"@alexbridey/react-native-video","dist-tags":{"latest":"1.0.0-beta.2"},"versions":{"1.0.0-beta.2":{"name":"@alexbridey/react-native-video","version":"1.0.0-beta.2","description":"A video filter for react-native","main":"lib/index","source":"src/index","react-native":"src/index","license":"MIT","author":{"name":"Community Contributors"},"homepage":"https://github.com/react-native-video/react-native-video#readme","repository":{"type":"git","url":"git+ssh://git@github.com/react-native-video/react-native-video.git"},"resolutions":{"@types/react":"~18.0.0"},"devDependencies":{"@jamesacarr/eslint-formatter-github-actions":"^0.2.0","@react-native/eslint-config":"^0.72.2","@release-it/conventional-changelog":"^7.0.2","@types/jest":"^28.1.2","@types/react":"~18.0.0","@types/react-native":"0.72.3","@typescript-eslint/eslint-plugin":"^6.7.4","eslint":"^8.19.0","eslint-plugin-jest":"^27.4.2","jest":"^29.7.0","prettier":"^2.4.1","react":"18.2.0","react-native":"0.72.5","react-native-windows":"^0.61.0-0","release-it":"^16.2.1","typescript":"5.1.6"},"dependencies":{},"peerDependencies":{"react":"*","react-native":"*"},"scripts":{"lint":"yarn eslint .","build":"yarn tsc","prepare":"yarn build","xbasic":"yarn --cwd examples/basic","docs":"yarn --cwd docs build","release":"release-it","test":"echo no test available","check-ios":"scripts/swift-format.sh && scripts/swift-lint.sh && scripts/clang-format.sh","check-android":"scripts/kotlin-lint.sh"},"_id":"@alexbridey/react-native-video@1.0.0-beta.2","gitHead":"c8983f4094ea485ea8c53c1bf7e7df9a5e3a0d34","types":"./lib/index.d.ts","bugs":{"url":"https://github.com/react-native-video/react-native-video/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ox177Tejd7gCTT6VTZDZ4rKpA3O8ZzYXwgI6rRMhkQWCAXtpZCQiVFnx2VxQHVYSCyzIw6Dp3N4EjnZdMzc4Sw==","shasum":"1c4bb00445ad2276c0c1ce629a6c40fae29e494c","tarball":"https://registry.npmjs.org/@alexbridey/react-native-video/-/react-native-video-1.0.0-beta.2.tgz","fileCount":150,"unpackedSize":578382,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFePCge10hsaL4AUtYs6nlHe8Fj/4PVv30Hr21M9U6XdAiAo7RtV8C1K0MbL0tJGr1iHfL0hnn4+lOfK2gyRCA7hMQ=="}]},"_npmUser":{"name":"alexbridey","email":"alex@bridey.com.au"},"directories":{},"maintainers":[{"name":"alexbridey","email":"alex@bridey.com.au"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-video_1.0.0-beta.2_1702983302827_0.7224388915713511"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-19T10:55:02.556Z","1.0.0-beta.2":"2023-12-19T10:55:03.083Z","modified":"2023-12-19T10:55:03.384Z"},"maintainers":[{"name":"alexbridey","email":"alex@bridey.com.au"}],"description":"A video filter for react-native","homepage":"https://github.com/react-native-video/react-native-video#readme","repository":{"type":"git","url":"git+ssh://git@github.com/react-native-video/react-native-video.git"},"author":{"name":"Community Contributors"},"bugs":{"url":"https://github.com/react-native-video/react-native-video/issues"},"license":"MIT","readme":"# react-native-video\n🎬 `<Video>` component for React Native\n\n> **Note:** version 5.2.1 won't have any updates. We are currently working on making a 6.0.0 fully stable\n\n## Documentation\nOld version of documentation can be found [here](https://github.com/react-native-video/react-native-video/tree/v6.0.0-alpha.8)\nNew documentation is available at [react-native-video.github.io/react-native-video](https://react-native-video.github.io/react-native-video/), if you find some issue with new version, don't hesitate to open a ticket!\n\n## Usage\n\n```javascript\n// Load the module\n\nimport Video, {VideoRef} from 'react-native-video';\n\n// Within your render function, assuming you have a file called\n// \"background.mp4\" in your project. You can include multiple videos\n// on a single screen if you like.\n\nconst VideoPlayer = () => {\n const videoRef = useRef<VideoRef>(null);\n const background = require('./background.mp4');\n\n return (\n   <Video \n    // Can be a URL or a local file.\n    source={background}\n    // Store reference  \n    ref={videoRef}\n    // Callback when remote video is buffering                                      \n    onBuffer={onBuffer}\n    // Callback when video cannot be loaded              \n    onError={onError}               \n    style={styles.backgroundVideo}\n   />\n )\n}\n\n// Later on in your styles..\nvar styles = StyleSheet.create({\n  backgroundVideo: {\n    position: 'absolute',\n    top: 0,\n    left: 0,\n    bottom: 0,\n    right: 0,\n  },\n});\n```\n\n","readmeFilename":"README.md"}