Skip to content

Commit

Permalink
Merge pull request #1300 from innoveit/feat/expo
Browse files Browse the repository at this point in the history
Added expo plugin
  • Loading branch information
marcosinigaglia authored Dec 12, 2024
2 parents 28a008a + 71e451c commit 831f57e
Show file tree
Hide file tree
Showing 10 changed files with 174 additions and 134 deletions.
4 changes: 2 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ theme: just-the-docs
color_scheme: dark

aux_links:
"Project on GitHub":
- "//github.com/innoveit/react-native-ble-manager"
"On GitHub":
- https://github.com/innoveit/react-native-ble-manager

nav_external_links:
- title: Project on GitHub
Expand Down
1 change: 1 addition & 0 deletions docs/_includes/head_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css">
4 changes: 2 additions & 2 deletions docs/_includes/nav_footer_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<label class="switch">
<input type="checkbox" id="theme-switch" />
<span class="slider round">
<span class="icon sun">☀️</span>
<span class="icon moon">🌙</span>
<span class="icon sun"><i class="fa-solid fa-sun"></i></span>
<span class="icon moon"><i class="fa-solid fa-moon"></i></span>
</span>
</label>
</div>
Expand Down
9 changes: 4 additions & 5 deletions docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,18 @@ input:checked+.slider:before {
color: #FFF;
}

/* Icona del sole */

.sun {
left: 4px;
left: 6px;
}

/* Icona della luna */
.moon {
right: 4px;
right: -6px;
color: #000;
}
}


/* Mostra l'icona appropriata in base allo stato dello switch */
input:checked+.slider .sun {
display: block;
}
Expand Down
36 changes: 36 additions & 0 deletions docs/expo.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
layout: page
title: Expo
permalink: /expo/
nav_order: 4
---

# Expo

You can use the library in Expo via a [development build](https://docs.expo.dev/develop/development-builds/introduction/).

Since Expo 52, it is possible to make full use of the new architecture of React Native and thus version 12.x of the library.

---

To help configure the app, we added a plugin from version 12.1.x, add the configuration in the `app.json` file

```js
{
...
"plugins" : [
...
["react-native-ble-manager", { options }]
],
}
```

**Options**

| Platform| Name| Type | Default | Description |
| --- | --- | --- | --- | --- |
| Android | `neverForLocation` | `Boolean` | `false` | The BLE is not used for location |
| Android | `companionDeviceEnabled` | `Boolean` | `false` | You are using the companion device |
| Android | `isBleRequired` | `Boolean` | `false` | The app require the BLE to work |
| iOS | `bluetoothAlwaysPermission` | `String | Boolean` | `'Allow $(PRODUCT_NAME) to connect to bluetooth devices'` | The reason you use the BLE |

2 changes: 1 addition & 1 deletion docs/troubleshooting.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: page
title: Troubleshooting
permalink: /troubleshooting/
nav_order: 4
nav_order: 5
---

# Troubleshooting
Expand Down
Loading

0 comments on commit 831f57e

Please sign in to comment.