mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 09:29:07 +08:00
Summary:
Follow up to 9ec9567390
Closes https://github.com/facebook/react-native/pull/16759
Differential Revision: D6285219
Pulled By: hramos
fbshipit-source-id: 7012d257a5a6cff06cb2d94203a9379e4b7e3c4e
75 lines
653 B
Markdown
75 lines
653 B
Markdown
---
|
|
id: settings
|
|
title: Settings
|
|
layout: docs
|
|
category: APIs
|
|
permalink: docs/settings.html
|
|
next: share
|
|
previous: pushnotificationios
|
|
---
|
|
|
|
|
|
|
|
### 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
|
|
|
|
|
|
|