{"id":17688898,"url":"https://github.com/stevenselcuk/react-native-get-values","last_synced_at":"2025-05-07T22:45:13.534Z","repository":{"id":48256283,"uuid":"286545671","full_name":"stevenselcuk/react-native-get-values","owner":"stevenselcuk","description":"Read values from your Info.plist (iOS) or values/strings.xml (Android) on your React Native project","archived":false,"fork":false,"pushed_at":"2022-09-21T17:16:39.000Z","size":39,"stargazers_count":20,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T22:45:06.074Z","etag":null,"topics":["android","ios","javascript","objective-c","package","react-native","react-native-bridge"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stevenselcuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-10T18:04:16.000Z","updated_at":"2024-11-08T02:34:18.000Z","dependencies_parsed_at":"2022-08-30T05:32:03.619Z","dependency_job_id":null,"html_url":"https://github.com/stevenselcuk/react-native-get-values","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenselcuk%2Freact-native-get-values","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenselcuk%2Freact-native-get-values/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenselcuk%2Freact-native-get-values/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenselcuk%2Freact-native-get-values/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevenselcuk","download_url":"https://codeload.github.com/stevenselcuk/react-native-get-values/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252967974,"owners_count":21833245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","javascript","objective-c","package","react-native","react-native-bridge"],"created_at":"2024-10-24T11:45:51.855Z","updated_at":"2025-05-07T22:45:13.513Z","avatar_url":"https://github.com/stevenselcuk.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-get-values\n\n## About\n\nRead values from your Info.plist (iOS) or values/strings.xml (Android) on your React Native project\n\n## Getting started\n\n`yarn add react-native-get-values`\n\nor\n\n`npm install react-native-get-values --save`\n\n### Mostly automatic installation\n\n`react-native link react-native-get-values`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-get-values` and add `RNGetValues.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNGetValues.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import com.reactlibrary.RNGetValuesPackage;` to the imports at the top of the file\n  - Add `new RNGetValuesPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-get-values'\n  \tproject(':react-native-get-values').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-get-values/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-get-values')\n  \t```\n\n\n## Usage\n\n### For iOS\n\nAs a classic way, open your xcode project and add rows to Info.plist or\n\nOpen  `your-RN-project/ios/RNCodeTest/Info.plist` file \nand add your keys\u0026values like this\n\n```xml\n...\n\t\u003ckey\u003eYOUR_KEY\u003c/key\u003e\n\t\u003cstring\u003easnltgfhe7s9ab\u003c/string\u003e\n\t\u003ckey\u003eYOUR_ANOTHER_KEY\u003c/key\u003e\n\t\u003cstring\u003ese7sbans84mvbsya\u003c/string\u003e\n...\n\u003c/dict\u003e\n\u003c/plist\u003e\n\n```\n\n### For android\n\nOpen `your-RN-project/android/app/src/main/res/values/strings.xml` file\nand add your keys\u0026values like this\n\n```xml\n\u003cresources\u003e\n    \u003cstring name=\"app_name\"\u003eyour-RN-project\u003c/string\u003e\n    \u003cstring name=\"YOUR_KEY\"\u003easnltgfhe7s9ab\u003c/string\u003e\n    \u003cstring name=\"YOUR_ANOTHER_KEY\"\u003ese7sbans84mvbsya\u003c/string\u003e\n\u003c/resources\u003e\n\n```\n\n```javascript\nimport getValue from 'react-native-get-values';\n\n// ...\n\nconst getTheKey = async () =\u003e {\n      const YourKeyValue = await getValue('YOUR_KEY');\n      return key\n}\n\n// ...\n\n```\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenselcuk%2Freact-native-get-values","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevenselcuk%2Freact-native-get-values","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenselcuk%2Freact-native-get-values/lists"}