user
12/17/2020, 9:53 PMuser
12/17/2020, 9:54 PMuser
12/17/2020, 9:54 PMwide-greece-63479
12/17/2020, 9:54 PMcool-psychiatrist-49311
12/18/2020, 11:43 AMwide-greece-63479
12/18/2020, 12:03 PM$hx_exports["App"] = App;
isn't "good enough" - at least not for for react-native-cli version 2.0.1.wide-greece-63479
12/18/2020, 12:04 PM-D js-classic
wide-greece-63479
12/18/2020, 12:04 PMexport default App;
to the compiled App.js output,wide-greece-63479
12/18/2020, 12:04 PMcool-psychiatrist-49311
12/18/2020, 12:24 PMwide-greece-63479
12/18/2020, 1:17 PM-D js-classic
and manually adding that export default App;
line... 🙂cool-psychiatrist-49311
12/18/2020, 1:18 PMcool-psychiatrist-49311
12/18/2020, 1:18 PMwide-greece-63479
12/18/2020, 1:20 PM-D js-classic
It just eliminates the function wrapper of the haxe-generated code.wide-greece-63479
12/18/2020, 1:23 PMexport default App
- and without that I get the "Component Exception - Element type is invalid" runtime error... 🥴cool-psychiatrist-49311
12/18/2020, 1:24 PMcool-psychiatrist-49311
12/18/2020, 1:25 PMwide-greece-63479
12/18/2020, 1:25 PMreact-native init whatever
command.cool-psychiatrist-49311
12/18/2020, 1:25 PMwide-greece-63479
12/18/2020, 1:27 PMcool-psychiatrist-49311
12/19/2020, 2:26 AMcool-psychiatrist-49311
12/19/2020, 2:27 AMimport {App} from ...
wide-greece-63479
12/19/2020, 9:02 AMwide-greece-63479
12/19/2020, 9:03 AMwide-greece-63479
12/19/2020, 9:04 AMwide-greece-63479
12/19/2020, 10:09 AMuser
12/19/2020, 10:24 AMuser
12/19/2020, 10:30 AMuser
12/19/2020, 10:33 AMuser
12/19/2020, 10:39 AM-D js-classic
only, right?