-
-
Notifications
You must be signed in to change notification settings - Fork 151
DOM Node APIs #844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOM Node APIs #844
Changes from all commits
37af4af
589652e
ea50e5e
951414a
7346c82
7fb4aba
a5887c2
70d7e8e
56afdd7
a36c34f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| 'use strict'; | ||
|
|
||
| var NativeMethods$ReactNative = require("./NativeMethods.bs.js"); | ||
| var NativeElement$ReactNative = require("./NativeElement.bs.js"); | ||
| var DrawerLayoutAndroidMethods$ReactNative = require("./DrawerLayoutAndroidMethods.bs.js"); | ||
|
|
||
| DrawerLayoutAndroidMethods$ReactNative.Make({}); | ||
| NativeElement$ReactNative.Impl({}); | ||
|
|
||
| NativeMethods$ReactNative.Make({}); | ||
| DrawerLayoutAndroidMethods$ReactNative.Make({}); | ||
|
|
||
| /* Not a pure module */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,9 @@ | ||
| type element | ||
| type ref = Ref.t<element> | ||
| type nativeElement | ||
|
|
||
| include DrawerLayoutAndroidMethods.Make({ | ||
| type t = element | ||
| include NativeElement.Impl({ | ||
| type t = nativeElement | ||
| }) | ||
|
|
||
| include NativeMethods.Make({ | ||
| include DrawerLayoutAndroidMethods.Make({ | ||
| type t = element | ||
| }) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,15 @@ | ||
| 'use strict'; | ||
|
|
||
| var DOMAPI$ReactNative = require("../types/DOMAPI.bs.js"); | ||
| var NativeMethods$ReactNative = require("./NativeMethods.bs.js"); | ||
|
|
||
| function Impl(T) { | ||
| NativeMethods$ReactNative.Make({}); | ||
| DOMAPI$ReactNative.$$Element.Impl({}); | ||
| return {}; | ||
| } | ||
|
|
||
| NativeMethods$ReactNative.Make({}); | ||
|
|
||
| exports.Impl = Impl; | ||
| /* Not a pure module */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,29 @@ | ||
| module Impl = ( | ||
| T: { | ||
| type t | ||
| }, | ||
| ) => { | ||
| type element = DOMAPI.element<T.t> | ||
| type ref = Ref.t<element> | ||
|
|
||
| external unsafeFromAnyElement: DOMAPI.anyElement => element = "%identity" | ||
|
|
||
| include NativeMethods.Make({ | ||
| type t = element | ||
| }) | ||
|
|
||
| include DOMAPI.Element.Impl({ | ||
| type t = element | ||
|
Comment on lines
+15
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Useful? React with 👍 / 👎. |
||
| }) | ||
| } | ||
|
|
||
| @deprecated("Use NativeElement.Impl instead of accessing element type directly.") | ||
| type element | ||
|
|
||
| @warning("-3") | ||
| type ref = Ref.t<element> | ||
|
|
||
| @warning("-3") | ||
| include NativeMethods.Make({ | ||
| type t = element | ||
| }) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| 'use strict'; | ||
|
|
||
| var NativeElement$ReactNative = require("./NativeElement.bs.js"); | ||
| var ScrollViewMethods$ReactNative = require("./ScrollViewMethods.bs.js"); | ||
|
|
||
| NativeElement$ReactNative.Impl({}); | ||
|
|
||
| ScrollViewMethods$ReactNative.Make({}); | ||
|
|
||
| /* Not a pure module */ |
Uh oh!
There was an error while loading. Please reload this page.