react-native-video may output an error when building the app.
To fix this go to:
node_modules/react-native-video/android-exoplayer/build.gradle
Change in the build.gradle every 2.13.2 by 2.13.3
This bug has already been reported to the devs of react-native-video but we fixed it by ourselves waiting for a patch from them.
First you need to configure your Android emulator
- Fix the bug called above
- Install dependencies with
yarn installornpm install. - Open a shell and run
yarn react-native startornpm react-native start. - Open a new shell and execute
yarn react-native run-androidornpm react-native run-android - Enjoy 🥰
You won't be able to connect with your Reddit account because I deleted the app on Reddit, if you want to test it put your own infos in sources/use-auth.js
function useProvideAuth() {
const signin = async () => {
const config = {
. . .
clientId: '<clientID>',
. . .
customHeaders: {
token: {
Authorization: 'Basic <base64encoded clientID:>',
},
},
}
}