Get metadata from Info.plist (iOS) or AndroidManifest.xml (Android)
npm install react-native-get-metadata!React Native
!Android
!iOS
!Kotlin
!Swift
Get metadata from Info.plist (iOS) or AndroidManifest.xml (Android).
There is a old and inactive lib for that, so I decided to create a new to add support for latest React Native versions and use Swift and Kotlin as native languages.
``sh`
npm install react-native-get-metadataOR
yarn add react-native-get-metadata
- AndroidManifest.xml
`xml`
...
...
- Info.plist
`xml`
...
- React Native
`js
import GetMetadata from 'react-native-get-metadata';
const data = await GetMetadata.forKey('API_KEY');
``
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
---
Made with create-react-native-library