fable-compiler / fable-react-native

Fable bindings and helpers for React Native projects
Apache License 2.0
49 stars 11 forks source link

[WIP] Update to Fable Core 3 #49

Closed forki closed 5 years ago

forki commented 5 years ago

@alfonsogarciacaro @MangelMaxime I'm trying to do the update to Fable.Core 3. Any help is appreciated

forki commented 5 years ago

Is there any guidance on what we have to do?

MangelMaxime commented 5 years ago

Well, it depends of the error you have when building the library.

If you remove Fable.PowperPack and needs to use it's happy you can use Fable.Promise (I guess RN was using the promise module).

If you have a reference to JS.Error you should replace it with System.Exception fable is generating them using native JS.Error.

If you have callback function before they were written using Func<....> or JS.Function I think we now use "lamba signature" something like arg1 -> arg2 -> result.

And other than that it a case by case handling in general.