shahen94 / react-native-video-processing

Native Video editing/trimming/compressing :movie_camera: library for React-Native
https://shahen94.github.io/react-native-video-processing/
MIT License
1.25k stars 327 forks source link

Some code to fix https://github.com/shahen94/react-native-video-processing/issues/215 #249

Closed ebellumat closed 4 years ago

ebellumat commented 4 years ago

Some code to fix https://github.com/shahen94/react-native-video-processing/issues/215

shahen94 commented 4 years ago

How this PR fixes the issue?

ebellumat commented 4 years ago

How this PR fixes the issue?

These modifications fix the dependency when they are used with React hooks. To set any variable in hooks, use the prefix "set", per example, the variable source, we need to implement a function called setSource.

shahen94 commented 4 years ago

Perfect!

Thanks for the PR, merging now.