Skip to content

Commit 0facbb0

Browse files
committed
ReScript
1 parent c503ebc commit 0facbb0

File tree

10 files changed

+208
-251
lines changed

10 files changed

+208
-251
lines changed

.gitattributes

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

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ node_modules
99
# npm unused lock file (we use yarn.lock)
1010
package-lock.json
1111

12-
# ReScript / Reason / Ocaml artifacts
13-
#*.bs.js # we do want this files to ensure zero-cost
12+
# ReScript artifacts
13+
# *.bs.js # we do want this files to ensure zero-cost
1414
.bsb.lock
1515
**/lib/bs
1616
**/lib/ocaml

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Changelog of `@reason-react-native/permissions`
1+
# Changelog of `@rescript-react-native/permissions`
22

33
## 2.2.1 - 2020-11-17
44

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 @reason-react-native contributors
3+
Copyright (c) 2019 @rescript-react-native contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# `@reason-react-native/permissions`
1+
# `@rescript-react-native/permissions`
22

3-
[![Build Status](https://github.com/reason-react-native/permissions/workflows/Build/badge.svg)](https://github.com/reason-react-native/permissions/actions)
4-
[![Version](https://img.shields.io/npm/v/@reason-react-native/permissions.svg)](https://www.npmjs.com/@reason-react-native/permissions)
5-
[![Chat](https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue)](https://reasonml-community.github.io/reason-react-native/discord/)
3+
[![Build Status](https://github.com/rescript-react-native/permissions/workflows/Build/badge.svg)](https://github.com/rescript-react-native/permissions/actions)
4+
[![Version](https://img.shields.io/npm/v/@rescript-react-native/permissions.svg)](https://www.npmjs.com/@rescript-react-native/permissions)
5+
[![ReScript Forum](https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org)](https://forum.rescript-lang.org/)
66

7-
[ReScript](https://rescript-lang.org) / [Reason](https://reasonml.github.io) bindings for
7+
[ReScript](https://rescript-lang.org) bindings for
88
[`react-native-permissions`](https://github.com/react-native-community/react-native-permissions).
99

1010
Exposed as `ReactNativePermissions` module.
1111

12-
`@reason-react-native/permissions` X.y.\* means it's compatible with
12+
`@rescript-react-native/permissions` X.y.\* means it's compatible with
1313
`react-native-permissions` X.y.\*
1414

1515
## Installation
@@ -20,30 +20,30 @@ is properly installed & configured by following their installation instructions,
2020
you can install the bindings:
2121

2222
```console
23-
npm install @reason-react-native/permissions
23+
npm install @rescript-react-native/permissions
2424
# or
25-
yarn add @reason-react-native/permissions
25+
yarn add @rescript-react-native/permissions
2626
```
2727

28-
`@reason-react-native/permissions` should be added to `bs-dependencies` in your
28+
`@rescript-react-native/permissions` should be added to `bs-dependencies` in your
2929
`bsconfig.json`:
3030

3131
```diff
3232
{
3333
//...
3434
"bs-dependencies": [
35-
"reason-react",
36-
"reason-react-native",
35+
"@rescript/react",
36+
"rescript-react-native",
3737
// ...
38-
+ "@reason-react-native/permissions"
38+
+ "@rescript-react-native/permissions"
3939
],
4040
//...
4141
}
4242
```
4343

4444
## Usage
4545

46-
```reason
46+
```rescript
4747
open ReactNative;
4848
4949
let requestCamera = () => {
@@ -77,11 +77,11 @@ releases.
7777
## Contribute
7878

7979
Read the
80-
[contribution guidelines](https://github.com/reason-react-native/.github/blob/master/CONTRIBUTING.md)
80+
[contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md)
8181
before contributing.
8282

8383
## Code of Conduct
8484

8585
We want this community to be friendly and respectful to each other. Please read
86-
[our full code of conduct](https://github.com/reason-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
86+
[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
8787
so that you can understand what actions will and will not be tolerated.

bsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
2-
"name": "@reason-react-native/permissions",
3-
"refmt": 3,
4-
"reason": {
5-
"react-jsx": 3
6-
},
2+
"name": "@rescript-react-native/permissions",
3+
"reason": { "react-jsx": 3 },
74
"package-specs": {
85
"module": "commonjs",
96
"in-source": true

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@reason-react-native/permissions",
2+
"name": "@rescript-react-native/permissions",
33
"description": "ReScript bindings for react-native-permissions.",
44
"version": "2.2.1",
55
"publishConfig": {
@@ -8,19 +8,17 @@
88
"peerDependencies": {
99
"react-native-permissions": "2.2.0"
1010
},
11-
"repository": "https://github.com/reason-react-native/permissions.git",
11+
"repository": "https://github.com/rescript-react-native/permissions.git",
1212
"license": "MIT",
1313
"keywords": [
1414
"rescript",
15-
"reason",
16-
"reasonml",
17-
"bucklescript",
1815
"react-native"
1916
],
2017
"files": [
2118
"*.md",
2219
"bsconfig.json",
23-
"src/**/*.re",
20+
"src/**/*.res",
21+
"src/**/*.resi",
2422
"src/**/*.js",
2523
"!src/**/*.bs.js"
2624
],
@@ -37,7 +35,7 @@
3735
"release": "npmpub"
3836
},
3937
"devDependencies": {
40-
"bs-platform": "^8.2.0",
38+
"bs-platform": "^9.0.0",
4139
"husky": "^4.0.0",
4240
"lint-staged": "^10.0.0",
4341
"npmpub": "^5.0.0",

src/ReactNativePermissions.re

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

0 commit comments

Comments
 (0)