This package is support by daridasar.com
React Native module which provides list of installed Android applications.
- Work for android
- Support typescript
If using yarn:
yarn add react-native-installed-application
If using npm:
npm i react-native-installed-application
import React, { useState } from "react";
import { View, Text } from "react-native";
import RNInstalledApplication from 'react-native-installed-application';
const App = () => {
const [data, setData] = useState([]);
const getApplication = ()=>{
RNInstalledApplication.getApps()
.then(apps => {
setData(apps)
})
.catch(error => {
console.log(error);
});
}
return (
<View style={{ marginVertical: 80, marginHorizontal: 20 }}>
<TouchableOpacity onPress={()=> getApplication()}>
<Text>Hello World</Text>
</TouchableOpacity>
</View>
);
};
export default App;
$ npm install react-native-installed-application --save
- packageName
- versionName
- versionCode
- firstInstallTime
- lastUpdateTime
- appName
- icon // Base64
- apkDir
- size // Bytes