fable-compiler / fable-react-native

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

FlatList fixes #22

Closed iyegoroff closed 6 years ago

iyegoroff commented 6 years ago

Some of FlatList properties are upper case: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native/index.d.ts#L3608-L3623

Note that I have changed props: IFlatListProperties to props: FlatListProperties to make it built. Not sure if it is ok.

forki commented 6 years ago

/cc @alfonsogarciacaro

alfonsogarciacaro commented 6 years ago

Thanks @iyegoroff! This should work. We may need a more general solution for these cases. We currently have the CompiledName attribute for special naming but they will still be affected by CaseRules so we cannot apply it here.

I'll release a new version so you can test it :+1: