Skip to content

Commit a7a0cb1

Browse files
committed
Bump version to 2.0.0-alpha-008
1 parent a93886b commit a7a0cb1

File tree

4 files changed

+31
-15
lines changed

4 files changed

+31
-15
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 2.0.0-alpha-008
2+
- fixed refs;
3+
- `SectionList` minor fixes.
4+
15
### 2.0.0-alpha-007
26
- fixed `FlatList` prop case conversion;
37
- added `SectionList`.

src/Fable.Helpers.ReactNative.fs

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ module Props =
478478
interface IViewPropertiesIOS
479479
interface IViewPropertiesAndroid
480480
interface IViewPagerAndroidProperties
481+
interface ISectionListProperties<'a>
481482

482483
type WebViewPropertiesAndroid =
483484
| JavaScriptEnabled of bool
@@ -524,7 +525,7 @@ module Props =
524525
| Source of U3<WebViewUriSource, WebViewHtmlSource, float>
525526
| MediaPlaybackRequiresUserAction of bool
526527
| ScalesPageToFit of bool
527-
| Ref of Ref<obj>
528+
| Ref of Ref<WebView>
528529
interface IWebViewProperties
529530

530531
type ImageURISourceProperties =
@@ -719,6 +720,7 @@ module Props =
719720
| OnPress of (unit -> unit)
720721
| Style of IStyle list
721722
| TestID of string
723+
| Ref of Ref<Text>
722724
interface ITextProperties
723725

724726
type ITextInputIOSProperties =
@@ -776,6 +778,7 @@ module Props =
776778
| Style of IStyle list
777779
| TestID of string
778780
| Value of string
781+
| Ref of Ref<TextInput>
779782
interface ITextInputProperties
780783

781784
module Toolbar =
@@ -835,6 +838,7 @@ module Props =
835838
| RemoveClippedSubviews of bool
836839
| Style of IStyle list
837840
| TestID of string
841+
| Ref of Ref<View>
838842
interface IViewProperties
839843

840844
type ViewPagerAndroidProperties =
@@ -846,13 +850,13 @@ module Props =
846850
| KeyboardDismissMode of KeyboardDismissMode
847851
| PageMargin of float
848852
| Style of IStyle list
849-
| Ref of Ref<obj>
853+
| Ref of Ref<ViewPagerAndroid>
850854
interface IViewPagerAndroidProperties
851855

852856
type KeyboardAvoidingViewProps =
853857
| Behavior of Behavior
854858
| KeyboardVerticalOffset of float // REQUIRED!
855-
| Ref of Ref<obj>
859+
| Ref of Ref<KeyboardAvoidingView>
856860
interface IKeyboardAvoidingViewProps
857861

858862
type SegmentedControlIOSProperties =
@@ -876,6 +880,7 @@ module Props =
876880
| TitleTextColor of string
877881
| Translucent of bool
878882
| Style of IStyle list
883+
| Ref of Ref<NavigatorIOS>
879884

880885
module ActivityIndicator =
881886
type ActivityIndicatorProperties =
@@ -921,7 +926,7 @@ module Props =
921926
| OnDrawerStateChanged of (ScrollState -> unit)
922927
| RenderNavigationView of (unit -> obj)
923928
| StatusBarBackgroundColor of obj
924-
| Ref of Ref<obj>
929+
| Ref of Ref<DrawerLayoutAndroid>
925930
interface IDrawerLayoutAndroidProperties
926931

927932
module Picker =
@@ -937,14 +942,12 @@ module Props =
937942

938943
type PickerPropertiesIOS =
939944
| ItemStyle of IStyle list
940-
| Ref of Ref<obj>
941945
interface IPickerProperties
942946

943947
type PickerPropertiesAndroid =
944948
| Enabled of bool
945949
| Mode of Mode
946950
| Prompt of string
947-
| Ref of Ref<obj>
948951
interface IPickerProperties
949952

950953
type PickerProperties =
@@ -957,6 +960,7 @@ module Props =
957960

958961
type PickerIOSProperties =
959962
| ItemStyle of ViewStyle list
963+
| Ref of Ref<PickerIOS>
960964
interface IPickerProperties
961965

962966
module ProgressBar =
@@ -985,7 +989,6 @@ module Props =
985989
| TintColor of string
986990
| Title of string
987991
| TitleColor of string
988-
| Ref of Ref<obj>
989992
interface IRefreshControlProperties
990993

991994

@@ -995,7 +998,6 @@ module Props =
995998
| ProgressBackgroundColor of string
996999
| Size of float
9971000
| ProgressViewOffset of float
998-
| Ref of Ref<obj>
9991001
interface IRefreshControlProperties
10001002

10011003
type RefreshControlProperties =
@@ -1087,6 +1089,7 @@ module Props =
10871089
| Source of IImageSource
10881090
| Style of IStyle list
10891091
| TestID of string
1092+
| Ref of Ref<Image>
10901093
interface IImageProperties
10911094

10921095

@@ -1141,7 +1144,7 @@ module Props =
11411144
| ShowsUserLocation of bool
11421145
| Style of IStyle list
11431146
| ZoomEnabled of bool
1144-
| Ref of Ref<obj>
1147+
| Ref of Ref<MapView>
11451148
interface IMapViewProperties
11461149

11471150
type ModalProperties =
@@ -1151,6 +1154,7 @@ module Props =
11511154
| Visible of bool
11521155
| OnRequestClose of (unit -> unit)
11531156
| OnShow of (NativeSyntheticEvent<obj> -> unit)
1157+
| Ref of Ref<Modal>
11541158

11551159
type IButtonProperties =
11561160
interface end
@@ -1162,6 +1166,7 @@ module Props =
11621166
| Color of string
11631167
| TestID of string
11641168
| HasTVPreferredFocus of bool
1169+
| Ref of Ref<Button>
11651170
interface IButtonProperties
11661171

11671172
type ITouchableHighlightProperties =
@@ -1208,6 +1213,7 @@ module Props =
12081213
| OnPressOut of (unit -> unit)
12091214
| Style of IStyle list
12101215
| PressRetentionOffset of obj
1216+
| Ref of Ref<TouchableWithoutFeedback>
12111217
interface ITouchableWithoutFeedbackProperties
12121218

12131219
type TouchableHighlightProperties =
@@ -1216,15 +1222,18 @@ module Props =
12161222
| OnShowUnderlay of (unit -> unit)
12171223
| Style of IStyle list
12181224
| UnderlayColor of string
1225+
| Ref of Ref<TouchableHighlight>
12191226
interface ITouchableHighlightProperties
12201227

12211228
type TouchableOpacityProperties =
12221229
| ActiveOpacity of float
1230+
| Ref of Ref<TouchableOpacity>
12231231
interface ITouchableOpacityProperties
12241232

12251233

12261234
type TouchableNativeFeedbackProperties =
12271235
| Background of obj
1236+
| Ref of Ref<TouchableNativeFeedback>
12281237
interface ITouchableNativeFeedbackProperties
12291238

12301239
type NavigationBarRouteMapper =
@@ -1264,7 +1273,7 @@ module Props =
12641273
| Style of IStyle list
12651274
| SystemIcon of SystemIcon
12661275
| Title of string
1267-
| Ref of Ref<obj>
1276+
| Ref of Ref<TabBarItemStatic>
12681277
interface IViewProperties
12691278

12701279
type TabBarIOSProperties =
@@ -1273,7 +1282,7 @@ module Props =
12731282
| TintColor of string
12741283
| Translucent of bool
12751284
| UnselectedTintColor of string
1276-
| Ref of Ref<obj>
1285+
| Ref of Ref<TabBarIOS>
12771286
interface IViewProperties
12781287

12791288
type IScrollViewPropertiesIOS =
@@ -1358,7 +1367,7 @@ module Props =
13581367
| RenderSectionHeader of (obj -> U2<string, float> -> React.ReactElement)
13591368
| RenderSeparator of (U2<string, float> -> U2<string, float> -> bool -> React.ReactElement)
13601369
| ScrollRenderAheadDistance of float
1361-
| Ref of Ref<obj>
1370+
| Ref of Ref<ListView<'a>>
13621371
interface IListViewProperties
13631372

13641373
type FlatListRenderItemSeparator = { highlight : (unit -> unit); unhighlight : (unit -> unit) }
@@ -1410,7 +1419,7 @@ module Props =
14101419
| RenderSectionHeader of (SectionListRenderInfo<'a> -> React.ReactElement)
14111420
| RenderSectionFooter of (SectionListRenderInfo<'a> -> React.ReactElement)
14121421
| RenderScrollComponent of (ScrollViewProperties -> React.ReactElement)
1413-
| Ref of Ref<obj>
1422+
| Ref of Ref<SectionList<'a>>
14141423
interface ISectionListProperties<'a>
14151424

14161425
type FlatListProperties<'a> =
@@ -1435,7 +1444,7 @@ module Props =
14351444
| RemoveClippedSubviews of bool
14361445
| RenderItem of (FlatListRenderItemInfo<'a> -> React.ReactElement)
14371446
| ViewabilityConfig of ViewabilityConfig
1438-
| Ref of Ref<obj>
1447+
| Ref of Ref<FlatList<'a>>
14391448
interface IFlatListProperties<'a>
14401449

14411450
type SwipeableListViewProps<'a> =

src/Fable.Import.ReactNative.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,6 +2184,9 @@ module ReactNative =
21842184
and RefreshControl =
21852185
RefreshControlStatic
21862186

2187+
and SectionList<'a> =
2188+
SectionListStatic<'a>
2189+
21872190
and Slider =
21882191
SliderStatic
21892192

src/Fable.React.Native.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Version>2.0.0</Version>
4-
<PackageVersion>2.0.0-alpha-007</PackageVersion>
4+
<PackageVersion>2.0.0-alpha-008</PackageVersion>
55
<TargetFramework>netstandard1.6</TargetFramework>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>

0 commit comments

Comments
 (0)