Skip to content

Commit

Permalink
ReScript
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed May 3, 2021
1 parent c503ebc commit 0facbb0
Show file tree
Hide file tree
Showing 10 changed files with 208 additions and 251 deletions.
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ node_modules
# npm unused lock file (we use yarn.lock)
package-lock.json

# ReScript / Reason / Ocaml artifacts
#*.bs.js # we do want this files to ensure zero-cost
# ReScript artifacts
# *.bs.js # we do want this files to ensure zero-cost
.bsb.lock
**/lib/bs
**/lib/ocaml
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Changelog of `@reason-react-native/permissions`
# Changelog of `@rescript-react-native/permissions`

## 2.2.1 - 2020-11-17

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# `@reason-react-native/permissions`
# `@rescript-react-native/permissions`

[![Build Status](https://github.com/reason-react-native/permissions/workflows/Build/badge.svg)](https://github.com/reason-react-native/permissions/actions)
[![Version](https://img.shields.io/npm/v/@reason-react-native/permissions.svg)](https://www.npmjs.com/@reason-react-native/permissions)
[![Chat](https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue)](https://reasonml-community.github.io/reason-react-native/discord/)
[![Build Status](https://github.com/rescript-react-native/permissions/workflows/Build/badge.svg)](https://github.com/rescript-react-native/permissions/actions)
[![Version](https://img.shields.io/npm/v/@rescript-react-native/permissions.svg)](https://www.npmjs.com/@rescript-react-native/permissions)
[![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/)

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

Exposed as `ReactNativePermissions` module.

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

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

```console
npm install @reason-react-native/permissions
npm install @rescript-react-native/permissions
# or
yarn add @reason-react-native/permissions
yarn add @rescript-react-native/permissions
```

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

```diff
{
//...
"bs-dependencies": [
"reason-react",
"reason-react-native",
"@rescript/react",
"rescript-react-native",
// ...
+ "@reason-react-native/permissions"
+ "@rescript-react-native/permissions"
],
//...
}
```

## Usage

```reason
```rescript
open ReactNative;
let requestCamera = () => {
Expand Down Expand Up @@ -77,11 +77,11 @@ releases.
## Contribute

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

## Code of Conduct

We want this community to be friendly and respectful to each other. Please read
[our full code of conduct](https://github.com/reason-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
so that you can understand what actions will and will not be tolerated.
7 changes: 2 additions & 5 deletions bsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"name": "@reason-react-native/permissions",
"refmt": 3,
"reason": {
"react-jsx": 3
},
"name": "@rescript-react-native/permissions",
"reason": { "react-jsx": 3 },
"package-specs": {
"module": "commonjs",
"in-source": true
Expand Down
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@reason-react-native/permissions",
"name": "@rescript-react-native/permissions",
"description": "ReScript bindings for react-native-permissions.",
"version": "2.2.1",
"publishConfig": {
Expand All @@ -8,19 +8,17 @@
"peerDependencies": {
"react-native-permissions": "2.2.0"
},
"repository": "https://github.com/reason-react-native/permissions.git",
"repository": "https://github.com/rescript-react-native/permissions.git",
"license": "MIT",
"keywords": [
"rescript",
"reason",
"reasonml",
"bucklescript",
"react-native"
],
"files": [
"*.md",
"bsconfig.json",
"src/**/*.re",
"src/**/*.res",
"src/**/*.resi",
"src/**/*.js",
"!src/**/*.bs.js"
],
Expand All @@ -37,7 +35,7 @@
"release": "npmpub"
},
"devDependencies": {
"bs-platform": "^8.2.0",
"bs-platform": "^9.0.0",
"husky": "^4.0.0",
"lint-staged": "^10.0.0",
"npmpub": "^5.0.0",
Expand Down
213 changes: 0 additions & 213 deletions src/ReactNativePermissions.re

This file was deleted.

Loading

0 comments on commit 0facbb0

Please sign in to comment.