@bacons/react-views
Advanced tools
export { View, Image, Text } from './UniversalViews'; | ||
export { Pressable } from './Pressable'; | ||
export { StyleSheet } from './StyleSheet'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Text = exports.Image = exports.View = void 0; | ||
exports.StyleSheet = exports.Pressable = exports.Text = exports.Image = exports.View = void 0; | ||
var UniversalViews_1 = require("./UniversalViews"); | ||
@@ -8,2 +8,6 @@ Object.defineProperty(exports, "View", { enumerable: true, get: function () { return UniversalViews_1.View; } }); | ||
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return UniversalViews_1.Text; } }); | ||
var Pressable_1 = require("./Pressable"); | ||
Object.defineProperty(exports, "Pressable", { enumerable: true, get: function () { return Pressable_1.Pressable; } }); | ||
var StyleSheet_1 = require("./StyleSheet"); | ||
Object.defineProperty(exports, "StyleSheet", { enumerable: true, get: function () { return StyleSheet_1.StyleSheet; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@bacons/react-views", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Basically if React Native and React Native for web had a baby and raised it to believe in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -16,3 +16,3 @@ # @bacons/react-views | ||
```tsx | ||
import { View, Image, Text } from "@bacons/react-views"; | ||
import { View, Image, Text, StyleSheet, Pressable } from "@bacons/react-views"; | ||
@@ -46,1 +46,3 @@ function App() { | ||
Mostly this adds types so there shouldn't be too much bloat. The styles are all evaluated on native platforms though, this doesn't have much overhead since `StyleSheet` API doesn't do anything on native besides adding typed props. | ||
> `StyleSheet` and `Pressable` have adjusted types only. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
68110
10.95%58
16%1152
8.78%47
4.44%