{"id":13463014,"url":"https://github.com/roman01la/react-native-babel","last_synced_at":"2025-03-25T06:31:29.022Z","repository":{"id":29481004,"uuid":"33018073","full_name":"roman01la/react-native-babel","owner":"roman01la","description":"Configuration to build React Native apps with ES6 using webpack and Babel","archived":true,"fork":false,"pushed_at":"2016-04-04T10:40:03.000Z","size":35,"stargazers_count":233,"open_issues_count":0,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T19:56:19.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"boparaiamrit/laravel-zoho-subscription","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roman01la.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-28T02:18:25.000Z","updated_at":"2024-10-30T11:01:50.000Z","dependencies_parsed_at":"2022-08-07T14:30:13.980Z","dependency_job_id":null,"html_url":"https://github.com/roman01la/react-native-babel","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/roman01la%2Freact-native-babel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman01la%2Freact-native-babel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman01la%2Freact-native-babel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman01la%2Freact-native-babel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roman01la","download_url":"https://codeload.github.com/roman01la/react-native-babel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245413814,"owners_count":20611353,"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":[],"created_at":"2024-07-31T13:00:44.030Z","updated_at":"2025-03-25T06:31:28.696Z","avatar_url":"https://github.com/roman01la.png","language":"Objective-C","funding_links":[],"categories":["Seeds","Objective-C"],"sub_categories":["Other Platforms"],"readme":"# React Native in ES6 with webpack and Babel\n\n## DEPRECATED!\n\nIt's possible to write React Native apps in ES6+ using `babel-loader` and `webpack`.\n\nCheck better approach using `DependencyGraph` module: [dep-graph](https://github.com/roman01la/react-native-babel/tree/dep-graph).\n\nBasically you need to compile everything to `index.ios.js` file, which is then transformed by `react-native`. Also, to stop webpack from trying to load native (Objective-C) components, you need to define them all as `externals` and set `libraryTarget: 'commonjs'` in webpack config, this way webpack will not resolve `require` to native components.\n\nCheck [`ignore-modules.js`](ignore-modules.js) for the regexp to match all native components, it is extracted using approach described in [dep-graph](https://github.com/roman01la/react-native-babel/tree/dep-graph) branch.\n\nCheck `webpack.config.js` for build configuration.\n\n## Usage\n\nBefore running the project, change code location in [`iOS/AppDelegate.m`](https://github.com/roman01la/react-native-babel/blob/master/iOS/AppDelegate.m#L29) to `localhost` to run on iOS Simulator or to your computer's IP address to run on device.\nRun in the terminal `webpack --config webpack.config.js`, open another tab and run `react-native start`.\n\n## Known limitations\n\n- No support for ES6 classes. There's no `React.Component` or any other extendable base class.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman01la%2Freact-native-babel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froman01la%2Freact-native-babel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman01la%2Freact-native-babel/lists"}