feat: move require (local files) to source.uri (#3535)

* feat!: move require source to `uri`

* pass other source properties

* chore: update basic example

* chore: restore backward compatibility

* docs: update source via require

* fix types

* make docs build workflow pretty

* improve docs
This commit is contained in:
Krzysztof Moch
2024-03-13 08:23:11 +01:00
committed by GitHub
parent eaa72c6665
commit 41ac781412
6 changed files with 34 additions and 11 deletions

View File

@@ -2,7 +2,8 @@
"extends": "@react-native/typescript-config/tsconfig.json",
"compilerOptions": {
"paths": {
"react-native-video": ["../../src/index"]
"react-native-video": ["../../src/index"],
"react": ["./node_modules/@types/react"]
}
},
"include": ["src", "**/*.js"],