Can we use Android kotlin Video player with react native? - react-native

I want to display a video player and contols it in react native but that video player is in kotlin language, So how can control and display android native activity and controls it in react native ?

Yes you can make a Video Player from native side, and expose via NativeModules and pass some props.
Ive done it a long time back and its possible, you can pass URL, height width etc . but im not sure about how well can you fetch the controls etc.
Check this article out, hope it helps : Rn native ui comp
Fee lfree for doubts

Related

Hi ,i need to add video trimming functionality to my react native app

Hi i need help with implementing video trimming feature to my react native app
enter image description here
I want help with implementing something like this

Is there a way to change the Apple Watch face from a React Native application?

The point of the React Native app is to have an image shown, and use that particular image to set it as a Watch Face?

How to track GPS location of smart phone in react native

I am working on an app right now, which should track your GPS location to track your movements. Which mean your phone should track your position even when the app is not active.
How can I achieve this in react native? I've been struggling already a long time now.
If you develop on Android you can use Headless JS with this tutorial.
If you are on IOS you can use this library.

Show a button on screen when the app is in background (React Native)

I'm trying to figure out how the apps like facebook messenger shows a circle of user image on screen when a new message comes, and Uber driver app shows the uber icon on screen when the user minimizes it. Is there anyway that I can show a customized component on phone screen even when the app is not open?
This Stackoverflow thread explains how to replicate in react native by changing the java code as its not supported by react native yet.
this feature is not support directly from react native and also this is not supported in ios therefore only you could implement it with java native code in android. to do that you should write a service in android which handle this element life cycle.
Check this below by lord pooria
RN-thread
Hope it helps. feel free for doubts

OnTouchListener for React Native

I'm looking for a method in React Native in which I can move an object by simply listening to the events KEY_DOWN, KEY_UP and KEY_MOVE. And as I move my finger on the component (KEY_MOVE), the position of the component moves along the X axis as per the new X axis I have. In Android (Java), I just did that part by doing this.setX(motionEvent.getX())
Since I'm migrating from Native Android to React Native, I'm having a little trouble making this work. Any help is appreciated.
You can use the PanResponder to get the touch events and then you can use the Animated API to get do the animations to move the view.
See https://moduscreate.com/animated_drag_and_drop_with_react_native/ for a full example.