Comments (1)
stringStyle
is an implementation detail and exposing it is not necessary. What's more people can use it to build unsafe APIs which throw in runtime. IMO the best way to solve this particular thing would be using ADTs. So that the api looks like this: marginTop Auto
or marginTop (Px 10)
or marginTop Pct 10
.
from rescript-react-native.
Related Issues (20)
- BS 8.2 polyvars as strings HOT 4
- AppState values HOT 2
- ReScript... HOT 13
- ActivityIndicator size cannot be a numeric value since 0.63 HOT 9
- Project generated by template does not compile HOT 2
- Adjust color type to make it more safe HOT 8
- Replace bs-platform with rescript package HOT 1
- Replace poly variants that use @as with strings HOT 2
- Add bindings for I18nManager HOT 1
- 0.65 HOT 1
- 0.66 HOT 1
- Build issues using Expo EAS HOT 1
- hitSlop now support a single value instead of object HOT 13
- ReScript 10 / records with optional fields HOT 11
- fontWeight broken in master HOT 3
- Revert the Platform.os changes? HOT 5
- Get ready for releasing 0.70.0 HOT 10
- The plan to support JSX v4 HOT 3
- Fails to install CocoaPods dependencies HOT 1
- Unable to resolve module `belt_Option.js` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rescript-react-native.