Horje
Can i open native video playback for both (Androidt / IOS) With React Native? Code Example
Can i open native video playback for both (Androidt / IOS) With React Native?
import React from 'react';
import {NativeModules, Button} from 'react-native';

const App = () => {
  const SendIntentAndroid = NativeModules?.SendIntentAndroid || {};

  const onPress = () => {
    SendIntentAndroid?.openAppWithData(
       null,                                        // Package name
      'https://www.w3schools.com/html/mov_bbb.mp4', // uri
      'video/*',                                    // mime/type
      {},                                           // extras
    );
  };
  return <Button onPress={onPress} title={'Open video playback'} />;
};

export default App;




Javascript

Related
j'ai eu la chance en anglais Code Example j'ai eu la chance en anglais Code Example
p5js unset fill Code Example p5js unset fill Code Example
asp.net run javascript on page load Code Example asp.net run javascript on page load Code Example
add json file to django models Code Example add json file to django models Code Example
mongoose schema aggregation lookup multiple collections Code Example mongoose schema aggregation lookup multiple collections Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7