mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
70 lines
553 B
Markdown
70 lines
553 B
Markdown
---
|
|
id: settings
|
|
title: Settings
|
|
---
|
|
|
|
|
|
|
|
### Methods
|
|
|
|
- [`get`](docs/settings.html#get)
|
|
- [`set`](docs/settings.html#set)
|
|
- [`watchKeys`](docs/settings.html#watchkeys)
|
|
- [`clearWatch`](docs/settings.html#clearwatch)
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
# Reference
|
|
|
|
## Methods
|
|
|
|
### `get()`
|
|
|
|
```javascript
|
|
Settings.get(key)
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
### `set()`
|
|
|
|
```javascript
|
|
Settings.set(settings)
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
### `watchKeys()`
|
|
|
|
```javascript
|
|
Settings.watchKeys(keys, callback)
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
### `clearWatch()`
|
|
|
|
```javascript
|
|
Settings.clearWatch(watchId)
|
|
```
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|