- Add
--with-native-for-typescript
option forreact-native-svg
with TypeScript
- Handle
gradientTransform
for ReScript - Handle float without leading 0 for ReScript
- Fix style prop generation
- Fix published files
- Add support for style prop
- Fix negative number transformation for ReScript output.
- Fix *-rescript options, round 2
- Adjust a bit rescript output
Fix *-rescript options
Some alias have been replaced. Please check the README for more information.
ReasonML output has been replaced by ReScript. This means:
--with-native-for-reason
has been replaced by--with-native-for-rescript
--with-web-for-reason
has been replaced by--with-web-for-rescript
Output is now ReScript code that works with @rescript/react
, rescript-react-native
and @rescript-react-native/svg
.
See https://rescript-react-native.github.io/blog/2021-05-04-hello-rescript-react-native for more informations.
- Add missing
Stop
component #15 by @Naturalclar
--with-native
: Fix JS output error "Error: Text strings must be rendered within a<Text>
#14 by @Freddy03h
--with-native-for-reason
: Fix 4.0.1 regression where size is undefined
--with-native-for-reason
: Avoid bucklescript shadow warnings forReactNative.Style.size
by @MoOx
In addition to some fixes, this release introduce a breaking change for the CLI.
Now you must use one of the --with-*
options options to have output for you desired platform/language:
--with-native
: Output code using React Native &react-native-svg
(compatible with React Native Web)--with-web
: Output code using React DOM. If--with-native
is also used, will be output as.web.js
files--with-native-for-reason
: Output code for Reason React Native &@reason-react-native/svg
--with-web-for-reason
: Output code for Reason React DOM
CLI has also been improved a little to be more gentle & can offer some --help
.
Also, now, no postinstall
step are necessary for this package as we ship a bundled version.
- Add
--with-native
, &--with-web
options (070a85f) by @MoOx - Remove
--with-reason
&--bs-module-path
(8034065) by @MoOx This change make sense as you can now directly output reason code that are directly svgs, not just bindings (see--with*-for-reason
new options). - Add
--with-native-for-reason
,--with-web-for-reason
(8034065) by @MoOx - File are now renamed to pascale case (eg:
some-file.svg
becomeSVGSomeFile.*
) (c62989f) by @MoOx
- Fix
strokeLinejoin
,strokeLinecap
&strokeMiterlimit
props (#8) by @Freddy03h - Fix incorrect replacement for width/height/fill incorrectly removed (4533c64) by @MoOx
- Add
--remove-stroke
option +stroke
component prop (#8) by @Freddy03h - Add
--commonjs
(070a85f) by @MoOx
- We now serve the package as a bundle bin to avoid
bs-platform
build on postinstall + artifacts issues (ed6262c) by @MoOx - Codebase covered by tests (via snapshots) by @MoOx
- Upgrade to bs-platform 7.2 (#7) by @broerjuang
- Fix TSpan import error (#6) by @broerjuang
- bump bs-platform to 7.1.0 (#6) by @broerjuang
- Fixed reason generated module name to the js
--reason-absolute-path
is now--reason-module-path
& can support absolute and local path
- oopsy path
- Add
--reason-absolute-path
option for reason files (#4) by @Freddy03h - Fix fill reason type by @MoOx
- Try to autorebuild if compiled artifacts are missing
- Try to load compiled transformer differently (not in-source as it's the recommended place - to avoid issue with existing bs compilation, which can override & break nodejs script due to not using commonjs).
- Use bs-platform@^7.0.0
We might in the future rebuild script before running it.
- Fix unwanted whitespace that create text nodes
- Fix removal of
<?xml
header without encoding
- Fix
pct
unit
- Add
--remove-fill
option
- Ooopsy :) Tons of fixes so it's usable. And
dp
unit
Support for
- React Native
- React Native Web
- Reason React Native
- Reason React Native Web
Via react-native-svg
🥳 Fixes
- xml headers
- comments
- title
- desc
- dashed properties
- Remove
[@bs.config {jsx: 3}];
- bs-platform 5.0.1 & reason-react 0.7.0
- Add dep (unused in production) to fit development bsconfig that is the same for production
- Build bsb on postinstall to avoid missing required files
Initial release