a5b474895a
* Initial library setup
* Add docblocks
* Some cleanup
* New storybook
* Playing around
* Remove silly test, use for...in
* Memo
* Memo
* Add hooks example
* Tweak colors, bit of cleanup
* Improve macro handling
* Add some more examples
* Rename for better diff
* Cleanup
* Add nested context example
* Add todo
* Less break more perf
* Buttons, you get the idea
* Fix test
* Remove temp colors
* Add a few more common macros
* Docs
* Perf improvements
* Alf go brrrr
* Update breakpoint handling
* I think it'll work
* Better naming, better code
* Fix typo
* Some renaming
* More complete pass at Tailwind naming
* Build out storybook
* Playing around with curves
* Revert "Playing around with curves"
This reverts commit 6b0e0e5c9d.
* Smooth brain
* Remove outdated docs
* Some docs, fix line-height values, export tokens
26 lines
392 B
TypeScript
26 lines
392 B
TypeScript
import {Platform} from 'react-native'
|
|
|
|
export function web(value: any) {
|
|
return Platform.select({
|
|
web: value,
|
|
})
|
|
}
|
|
|
|
export function ios(value: any) {
|
|
return Platform.select({
|
|
ios: value,
|
|
})
|
|
}
|
|
|
|
export function android(value: any) {
|
|
return Platform.select({
|
|
android: value,
|
|
})
|
|
}
|
|
|
|
export function native(value: any) {
|
|
return Platform.select({
|
|
native: value,
|
|
})
|
|
}
|