{"id":17868154,"url":"https://github.com/futurechallenger/react-native-tutorial","last_synced_at":"2025-10-16T22:11:36.741Z","repository":{"id":145606456,"uuid":"109809773","full_name":"futurechallenger/react-native-tutorial","owner":"futurechallenger","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-04T12:43:55.000Z","size":2240,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T00:45:13.167Z","etag":null,"topics":["hot-reload","react-native","swift","tutorial"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/futurechallenger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-07T08:50:37.000Z","updated_at":"2022-03-03T07:24:24.000Z","dependencies_parsed_at":"2023-06-06T14:45:22.255Z","dependency_job_id":null,"html_url":"https://github.com/futurechallenger/react-native-tutorial","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/futurechallenger%2Freact-native-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futurechallenger%2Freact-native-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futurechallenger%2Freact-native-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futurechallenger%2Freact-native-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/futurechallenger","download_url":"https://codeload.github.com/futurechallenger/react-native-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244790714,"owners_count":20510795,"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":["hot-reload","react-native","swift","tutorial"],"created_at":"2024-10-28T09:57:02.777Z","updated_at":"2025-10-16T22:11:31.702Z","avatar_url":"https://github.com/futurechallenger.png","language":"JavaScript","readme":"# react-native-tutorial\n\nThis is a react native tutorial demos repo.\n\n## How to upgrade to the latest RN\n\nI think the best way to do this is to create a new RN project that has the same name as your existing project.\n\nThen there are two parts you will have to deal with.\n1. `package.json` file related.\n2. non-`package.json` file related.\n\n### `Package.json` things\n\nCopy newest dependencies and replace your existing ones and keep others.\n\nBasically these stuff.\n```json\n  \"dependencies\": {\n    \"react\": \"16.6.3\",\n    \"react-native\": \"0.58.3\"\n  },\n  \"devDependencies\": {\n    \"babel-core\": \"^7.0.0-bridge.0\",\n    \"babel-jest\": \"24.0.0\",\n    \"jest\": \"24.0.0\",\n    \"metro-react-native-babel-preset\": \"0.51.1\",\n    \"react-test-renderer\": \"16.6.3\"\n  },\n  \"jest\": {\n    \"preset\": \"react-native\"\n  }\n```\n\n### Non-`package.json` things\nIf your package is really old that you still have `index.ios.js` / `index.android.js`. You will have to do something to your codes to morden styles, like there might have `App.js` and `app.json` and `index.js`. Generally files like this.\n\nThen copy files like:\n* `.buckconfig`\n* `.flowconfig`\n* `.gitattributes`\n* `.gitignore`, **DO REMEMBER** to merge this file, you have to keep you own modification.\n* `.watchmanconfig`\n\n### Upgrade Babel Config\nMaybe it's OK to keep your babel config file name as `.babelrc`, but the current one is named `babel.config.js`. So let's name it as the new one.\n\nChange the content of the config file to:\n```javascript\nmodule.exports = {\n  presets: [\"module:metro-react-native-babel-preset\"]\n}\n```\n\n### Upgrade iOS\n\nYou might going to upgrade swift version. Follow the swift way. I met some problems in swift 4.2. The class method can not be called in OC. As there's a modification in Swift 4.2.\n\n### Upgrade Android\n\nJust open your Android Studio and let the IDE do the upgrade job.\n\nIf you used NDK, well downlad a new version which is specified in RN doc.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturechallenger%2Freact-native-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuturechallenger%2Freact-native-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturechallenger%2Freact-native-tutorial/lists"}