Skip to content

Commit 2734636

Browse files
committed
Initial Commit
1 parent e70279e commit 2734636

File tree

8 files changed

+119
-72
lines changed

8 files changed

+119
-72
lines changed

CHANGELOG.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
# Changelog of `@reason-react-native/__template__`
1+
# Changelog of `@reason-react-native/linear-gradient`
22

3-
## X.Y.Z - 20YY-MM-DD
3+
## 2.5.6 - 2020-01-20
44

5-
Short & concise description
6-
7-
### 💥 Breaking changes
8-
9-
- Something, in [1234567](<link to commit on github>) by @<usename>
10-
11-
### 🐛 Fixes
12-
13-
- Something else, in [1234567](<link to commit on github>) by @<usename>
14-
15-
### Internal changes
16-
17-
(If worth mentioning)
5+
2.5.6 release

README.md

Lines changed: 14 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,33 @@
1-
**How to use this template**
2-
3-
- Put your bindings in `src/ReactNativeSomething` & rename accordingly or use
4-
`bsconfig.json` `"namespace"` field (more on this below),
5-
- Update all occurences of
6-
7-
- `@reason-react-native/__template__`
8-
- `https://github.com/reason-react-native/__template__`
9-
- `__template__`
10-
- `@react-native-community/something`
11-
- `https://github.com/react-native-community/something`
12-
- `ReactNativeSomething`. If you have more than a file exposed, you should
13-
consider using BuckleScript custom namespace by adjusting `bsconfig.json`
14-
and adding a `"namespace": "react-native-something"` (note that it will be
15-
converted to `ReactNativeSomething`)
16-
17-
- Add your `@react-native-community/something` (adjusted) in `peerDependencies`
18-
& `devDependencies` section
19-
- Adjust the changelog (and/or clean it)
20-
- Remove this part ⬆ & keep everything below ⬇
1+
# `@reason-react-native/linear-gradient`
212

22-
---
23-
24-
# `@reason-react-native/__template__`
25-
26-
[![Build Status](https://github.com/reason-react-native/__template__/workflows/Build/badge.svg)](https://github.com/reason-react-native/__template__/actions)
27-
[![Version](https://img.shields.io/npm/v/@reason-react-native/__template__.svg)](https://www.npmjs.com/@reason-react-native/__template__)
3+
[![Build Status](https://github.com/reason-react-native/linear-gradient/workflows/Build/badge.svg)](https://github.com/reason-react-native/linear-gradient/actions)
4+
[![Version](https://img.shields.io/npm/v/@reason-react-native/linear-gradient.svg)](https://www.npmjs.com/@reason-react-native/linear-gradient)
285
[![Chat](https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue)](https://reasonml-community.github.io/reason-react-native/discord/)
296

307
[ReasonML](https://reasonml.github.io) /
318
[BuckleScript](https://bucklescript.github.io) bindings for
32-
[`@react-native-community/something`](https://github.com/react-native-community/something).
9+
[`react-native-linear-gradient`](https://github.com/react-native-community/react-native-linear-gradient).
3310

34-
Exposed as `ReactNativeSomething` module.
11+
Exposed as `ReactNativeLinearGradient` module.
3512

36-
`@reason-react-native/__template__` X.y._ means it's compatible with
37-
`@react-native-community/something` X.y._
13+
`@reason-react-native/linear-gradient` X.y._ means it's compatible with
14+
`react-native-linear-gradient` X.y._
3815

3916
## Installation
4017

4118
When
42-
[`@react-native-community/something`](https://github.com/react-native-community/something)
19+
[`react-native-linear-gradient`](https://github.com/react-native-community/react-native-linear-gradient)
4320
is properly installed & configured by following their installation instructions,
4421
you can install the bindings:
4522

4623
```console
47-
npm install @reason-react-native/__template__
24+
npm install @reason-react-native/linear-gradient
4825
# or
49-
yarn add @reason-react-native/__template__
26+
yarn add @reason-react-native/linear-gradient
5027
```
5128

52-
`@reason-react-native/__template__` should be added to `bs-dependencies` in your
53-
`bsconfig.json`. Something like
29+
`@reason-react-native/linear-gradient` should be added to `bs-dependencies` in
30+
your `bsconfig.json`. Something like
5431

5532
```diff
5633
{
@@ -59,7 +36,7 @@ yarn add @reason-react-native/__template__
5936
"reason-react",
6037
"reason-react-native",
6138
// ...
62-
+ "@reason-react-native/__template__"
39+
+ "@reason-react-native/linear-gradient"
6340
],
6441
//...
6542
}
@@ -69,15 +46,7 @@ yarn add @reason-react-native/__template__
6946

7047
### Types
7148

72-
#### `ReactNativeSomething.t`
73-
74-
...
75-
76-
### Methods
77-
78-
#### `ReactNativeSomething.method`
79-
80-
...
49+
#### `ReactNativeLinearGradient.t`
8150

8251
---
8352

bsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@reason-react-native/__template__",
2+
"name": "@reason-react-native/linear-gradient",
33
"refmt": 3,
44
"reason": {
55
"react-jsx": 3
@@ -16,5 +16,5 @@
1616
}
1717
],
1818
"bsc-flags": ["-bs-no-version-header", "-warn-error @a"],
19-
"bs-dependencies": []
19+
"bs-dependencies": ["reason-react", "reason-react-native"]
2020
}

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"name": "@reason-react-native/__template__",
3-
"version": "0.0.0",
2+
"name": "@reason-react-native/linear-gradient",
3+
"version": "2.5.6",
44
"publishConfig": {
55
"access": "public"
66
},
77
"peerDependencies": {
8+
"react-native-linear-gradient": "2.5.6"
89
},
9-
"repository": "https://github.com/reason-react-native/__template__.git",
10+
"repository": "https://github.com/reason-react-native/linear-gradient.git",
1011
"license": "MIT",
1112
"keywords": [
1213
"reason",
@@ -35,11 +36,14 @@
3536
"release": "npmpub"
3637
},
3738
"devDependencies": {
39+
"react-native-linear-gradient": "2.5.6",
3840
"bs-platform": "^5.2.0",
3941
"husky": "^1.3.0",
4042
"lint-staged": "^8.1.0",
4143
"npmpub": "^5.0.0",
42-
"prettier": "^1.18.0"
44+
"prettier": "^1.18.0",
45+
"reason-react": "0.7.0",
46+
"reason-react-native": "0.60.1"
4347
},
4448
"prettier": {
4549
"trailingComma": "all",
@@ -60,4 +64,4 @@
6064
"pre-commit": "lint-staged"
6165
}
6266
}
63-
}
67+
}
File renamed without changes.

src/ReactNativeLinearGradient.re

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
type position;
2+
3+
[@bs.obj] external position: (~x: float, ~y: float, unit) => position = "";
4+
5+
[@bs.module "react-native-linear-gradient"] [@react.component]
6+
external make:
7+
(
8+
~style: ReactNative.Style.t=?,
9+
~colors: array(string),
10+
~locations: array(float)=?,
11+
~children: React.element,
12+
~start: position=?,
13+
~_end: position=?,
14+
~angleCenter: position=?,
15+
~angle: float=?,
16+
~useAngle: bool=?
17+
) =>
18+
React.element =
19+
"default";

src/ReactNativeSomething.re

Lines changed: 0 additions & 4 deletions
This file was deleted.

yarn.lock

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,11 @@ isobject@^3.0.0, isobject@^3.0.1:
969969
resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
970970
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
971971

972+
"js-tokens@^3.0.0 || ^4.0.0":
973+
version "4.0.0"
974+
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
975+
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
976+
972977
js-yaml@^3.13.1:
973978
version "3.13.1"
974979
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847"
@@ -1130,6 +1135,13 @@ log-update@^2.3.0:
11301135
cli-cursor "^2.0.0"
11311136
wrap-ansi "^3.0.1"
11321137

1138+
loose-envify@^1.1.0, loose-envify@^1.4.0:
1139+
version "1.4.0"
1140+
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
1141+
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
1142+
dependencies:
1143+
js-tokens "^3.0.0 || ^4.0.0"
1144+
11331145
lru-cache@^4.0.0:
11341146
version "4.1.5"
11351147
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd"
@@ -1298,7 +1310,7 @@ number-is-nan@^1.0.0:
12981310
resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
12991311
integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=
13001312

1301-
object-assign@^4.0.1, object-assign@^4.1.0:
1313+
object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1:
13021314
version "4.1.1"
13031315
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
13041316
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
@@ -1475,6 +1487,15 @@ prettier@^1.18.0:
14751487
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
14761488
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
14771489

1490+
prop-types@^15.6.2:
1491+
version "15.7.2"
1492+
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
1493+
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
1494+
dependencies:
1495+
loose-envify "^1.4.0"
1496+
object-assign "^4.1.1"
1497+
react-is "^16.8.1"
1498+
14781499
property-expr@^1.5.0:
14791500
version "1.5.1"
14801501
resolved "https://registry.yarnpkg.com/property-expr/-/property-expr-1.5.1.tgz#22e8706894a0c8e28d58735804f6ba3a3673314f"
@@ -1493,6 +1514,35 @@ pump@^3.0.0:
14931514
end-of-stream "^1.1.0"
14941515
once "^1.3.1"
14951516

1517+
react-dom@>=16.8.1:
1518+
version "16.12.0"
1519+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.12.0.tgz#0da4b714b8d13c2038c9396b54a92baea633fe11"
1520+
integrity sha512-LMxFfAGrcS3kETtQaCkTKjMiifahaMySFDn71fZUNpPHZQEzmk/GiAeIT8JSOrHB23fnuCOMruL2a8NYlw+8Gw==
1521+
dependencies:
1522+
loose-envify "^1.1.0"
1523+
object-assign "^4.1.1"
1524+
prop-types "^15.6.2"
1525+
scheduler "^0.18.0"
1526+
1527+
react-is@^16.8.1:
1528+
version "16.12.0"
1529+
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.12.0.tgz#2cc0fe0fba742d97fd527c42a13bec4eeb06241c"
1530+
integrity sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==
1531+
1532+
react-native-linear-gradient@2.5.6:
1533+
version "2.5.6"
1534+
resolved "https://registry.yarnpkg.com/react-native-linear-gradient/-/react-native-linear-gradient-2.5.6.tgz#96215cbc5ec7a01247a20890888aa75b834d44a0"
1535+
integrity sha512-HDwEaXcQIuXXCV70O+bK1rizFong3wj+5Q/jSyifKFLg0VWF95xh8XQgfzXwtq0NggL9vNjPKXa016KuFu+VFg==
1536+
1537+
react@>=16.8.1:
1538+
version "16.12.0"
1539+
resolved "https://registry.yarnpkg.com/react/-/react-16.12.0.tgz#0c0a9c6a142429e3614834d5a778e18aa78a0b83"
1540+
integrity sha512-fglqy3k5E+81pA8s+7K0/T3DBCF0ZDOher1elBFzF7O6arXJgzyu/FW+COxFvAWXJoJN9KIZbT2LXlukwphYTA==
1541+
dependencies:
1542+
loose-envify "^1.1.0"
1543+
object-assign "^4.1.1"
1544+
prop-types "^15.6.2"
1545+
14961546
read-pkg@^4.0.1:
14971547
version "4.0.1"
14981548
resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-4.0.1.tgz#963625378f3e1c4d48c85872b5a6ec7d5d093237"
@@ -1509,6 +1559,19 @@ readjson@^1.1.0:
15091559
dependencies:
15101560
try-catch "^2.0.0"
15111561

1562+
reason-react-native@0.60.1:
1563+
version "0.60.1"
1564+
resolved "https://registry.yarnpkg.com/reason-react-native/-/reason-react-native-0.60.1.tgz#eb60dbed6a85ffc4805c08ab4d6a0b551c132c7f"
1565+
integrity sha512-XJJqG62LW9j7YstzAsD20S8t1kH3uVu19/PT5NByceCACq/8oClBLsFXHXhlPvVvdgKvydGjQo+mNb+JCoJ2Kw==
1566+
1567+
reason-react@0.7.0:
1568+
version "0.7.0"
1569+
resolved "https://registry.yarnpkg.com/reason-react/-/reason-react-0.7.0.tgz#46a975c321e81cd51310d7b1a02418ca7667b0d6"
1570+
integrity sha512-czR/f0lY5iyLCki9gwftOFF5Zs40l7ZSFmpGK/Z6hx2jBVeFDmIiXB8bAQW/cO6IvtuEt97OmsYueiuOYG9XjQ==
1571+
dependencies:
1572+
react ">=16.8.1"
1573+
react-dom ">=16.8.1"
1574+
15121575
regenerator-runtime@^0.13.2:
15131576
version "0.13.3"
15141577
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5"
@@ -1596,6 +1659,14 @@ safe-regex@^1.1.0:
15961659
dependencies:
15971660
ret "~0.1.10"
15981661

1662+
scheduler@^0.18.0:
1663+
version "0.18.0"
1664+
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.18.0.tgz#5901ad6659bc1d8f3fdaf36eb7a67b0d6746b1c4"
1665+
integrity sha512-agTSHR1Nbfi6ulI0kYNK0203joW2Y5W4po4l+v03tOoiJKpTBbxpNhWDvqc/4IcOw+KLmSiQLTasZ4cab2/UWQ==
1666+
dependencies:
1667+
loose-envify "^1.1.0"
1668+
object-assign "^4.1.1"
1669+
15991670
semver-compare@^1.0.0:
16001671
version "1.0.0"
16011672
resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc"

0 commit comments

Comments
 (0)