3 ms·
Thanks! I guess my actual question is -- what are the hook(s) Expo expects from a React Native package? I'm used to using Webpack or Gulp or Grunt to transpile
by andrewfong 10y ago
Thanks! I guess my actual question is -- what are the hook(s) Expo expects from a React Native package?
I'm used to using Webpack or Gulp or Grunt to transpile source code into something deployable on the web. The React Native / Expo packaging process feels opaque to me though. It's not clear to me, for instance, whether Expo uses https://github.com/facebook/react-native/tree/master/packager https://github.com/facebook/react-native/tree/master/package... or whether it has some kind of different packaging process.
Likewise, a newly created project with the XDE builds automatically using Babel. But it's not clear from the project itself how XDE knows to use Babel. Is Babel hard-coded in the XDE? Can I turn it off?
Expo apps also all seem to have a `registerRootComponent` function, but there isn't any documentation on what this function actually does.
- dikaiosune 10y agoBabel is on by default in the React Native packager, which is indeed used under the hood by both CRNA and Expo's devtools. The template projects include a .babelrc file. The `registerRootComponent` function is essentially a facade to `AppRegistry.registerComponent` but it also configures hooks for Expo's asset system.