In order to get the full functionality of this module, the basic steps are summarized below. This summary doesn't cover all the details and I strongly recommend referring to the detailed documentation if extra information is sought regarding the required permissions and configurations. This summary ,however, is useful as a quick reference concerning the capabilities of the module. To use this module, all you have to do is basically as follows:
$ npm install react-native-system-applications --save
or
$ yarn add react-native-system-applications
react-native link react-native-system-applications
import { Audio, Alarm, Video, Image,
Files, Sms, Volume, Wifi, Calls,
Contacts, Bluetooth, Brightness} from 'react-native-system-applications';
🔷 Audio
Audio.prepare({ "outputFolder": "music/" });
Audio.startRecording();
Audio.stopRecording();
Audio.isRecording();
Audio.exitRecording();
🔷 Video
Video.prepare({ "outputFolder": "videos/" });
Video.startRecording();
Video.stopRecording();
Video.isRecording();
Video.exitRecording();
🔷 Image
Image.prepare({outputFolder: "images/", "cameraType": "FRONT"});
Image.capture();
Image.exitCapture();
Contacts.pick();
Contacts.getAll();
🔷 Calls
Calls.call("+123-456-7890");
Calls.getLog();
🔷 Files
Files.open("Images/myPic.jpg");
Files.getPath();
Files.pick();
🔷 Sms
Sms.send("+012-345-6789", "Hi there");
🔷 Volume
Volume.indexOf("system");
Volume.indexTo("alarm", 10);
Volume.silence();
Volume.normalize();
Volume.vibrate();
Bluetooth.isEnabled();
Bluetooth.enable();
Bluetooth.disable();
🔷 Wifi
Wifi.isEnabled();
Wifi.enable();
Wifi.disable();
Brightness.index();
Brightness.indexTo(100);
🔷 Alarm
Alarm.schedule({ "channelId": "abc123", "date": (new Date()).getTime() + 60000 });
Alarm.update({"channelId": "abc123", "title": "myTitle"});
Alarm.refer("abc123");
Alarm.cancel("abc123");
Alarm.cancelAll();