Skip to content

Commit

Permalink
Bump version to 2.0.0-alpha-013
Browse files Browse the repository at this point in the history
  • Loading branch information
iyegoroff committed Oct 7, 2018
1 parent a59227f commit 206a3be
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 2.0.0-alpha-013
- added generic values support for `Picker` & `PickerItem`.

### 2.0.0-alpha-012
- fixed `TransformsStyle.Transform`;
- added `deg` & `rad` functions to create values of `IAngle` type.
Expand Down
40 changes: 21 additions & 19 deletions src/Fable.Helpers.ReactNative.fs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ module Props =
type IAngle =
interface end

type IPickerItem<'a> =
inherit React.ReactElement

type IStyle =
interface end

Expand Down Expand Up @@ -363,7 +366,7 @@ module Props =
type IDrawerLayoutAndroidProperties =
interface end

type IPickerProperties =
type IPickerProperties<'a> =
interface end

type IProgressBarAndroidProperties =
Expand Down Expand Up @@ -473,7 +476,6 @@ module Props =
inherit IActivityIndicatorIOSProperties
inherit IDatePickerIOSProperties
inherit IDrawerLayoutAndroidProperties
inherit IPickerProperties
inherit IProgressBarAndroidProperties
inherit IProgressViewIOSProperties
inherit IRefreshControlProperties
Expand Down Expand Up @@ -974,34 +976,34 @@ module Props =
| Value of U2<string, int>
| Label of string

type PickerItemProperties =
type PickerItemProperties<'a> =
| Label of string // REQUIRED!
| Value of string
| Value of 'a
| Color of string
| TestID of string

type PickerPropertiesIOS =
type PickerPropertiesIOS<'a> =
| ItemStyle of IStyle list
interface IPickerProperties
interface IPickerProperties<'a>

type PickerPropertiesAndroid =
type PickerPropertiesAndroid<'a> =
| Enabled of bool
| Mode of Mode
| Prompt of string
interface IPickerProperties
interface IPickerProperties<'a>

type PickerProperties =
| OnValueChange of (string -> int -> unit)
| SelectedValue of string
type PickerProperties<'a> =
| OnValueChange of ('a -> int -> unit)
| SelectedValue of 'a
| Style of IStyle list
| TestId of string
| Ref of Ref<Picker>
interface IPickerProperties
interface IPickerProperties<'a>

type PickerIOSProperties =
type PickerIOSProperties<'a> =
| ItemStyle of ViewStyle list
| Ref of Ref<PickerIOS>
interface IPickerProperties
interface IPickerProperties<'a>

module ProgressBar =
type ProgressBarAndroidProperties =
Expand Down Expand Up @@ -1565,7 +1567,7 @@ module Props =
interface IWebViewPropertiesIOS
interface IDatePickerIOSProperties
interface IDrawerLayoutAndroidProperties
interface IPickerProperties
interface IPickerProperties<'a>
interface IProgressBarAndroidProperties
interface IProgressViewIOSProperties
interface IRefreshControlProperties
Expand Down Expand Up @@ -1722,18 +1724,18 @@ let inline pickerIOSItem (props:Picker.PickerIOSItemProperties list) : React.Rea
RN.PickerIOS.Item,
props, [])

let inline pickerItem (props:Picker.PickerItemProperties list) : React.ReactElement =
let inline pickerItem<'a> (props:Picker.PickerItemProperties<'a> list) : IPickerItem<'a> =
createElement(
RN.Picker.Item,
props, [])

let inline picker (props:IPickerProperties list) (children:React.ReactElement list): React.ReactElement =
let inline picker (props:IPickerProperties<'a> list) (children:IPickerItem<'a> list): React.ReactElement =
createElement(
RN.Picker,
props,
children)
unbox<React.ReactElement list> children)

let inline pickerIOS (props:Picker.PickerIOSProperties list) (children:React.ReactElement list): React.ReactElement =
let inline pickerIOS (props:Picker.PickerIOSProperties<'a> list) (children:React.ReactElement list): React.ReactElement =
createElement(
RN.PickerIOS,
props,
Expand Down
2 changes: 1 addition & 1 deletion src/Fable.React.Native.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>2.0.0</Version>
<PackageVersion>2.0.0-alpha-012</PackageVersion>
<PackageVersion>2.0.0-alpha-013</PackageVersion>
<TargetFramework>netstandard1.6</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
Expand Down

0 comments on commit 206a3be

Please sign in to comment.