@ruby-native/react 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +7 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -40,6 +40,13 @@ export function NativeMenuItem({ title, href, click, icon, selected }) {
40
40
  return createElement("div", props)
41
41
  }
42
42
 
43
+ export function NativeFab({ icon, href, click }) {
44
+ const props = { "data-native-fab": true, "data-native-icon": icon, hidden: true }
45
+ if (href) props["data-native-href"] = href
46
+ if (click) props["data-native-click"] = click
47
+ return createElement("div", props)
48
+ }
49
+
43
50
  export function NativeOverscroll({ top, bottom }) {
44
51
  return createElement("div", {
45
52
  "data-native-overscroll-top": top,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruby-native/react",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "React components for Ruby Native",
5
5
  "main": "index.js",
6
6
  "files": ["index.js", "README.md"],