Settings

The Settings API serves as a wrapper for NSUserDefaults.

MethodsclearWatch()get()set()watchKeys()

RESETRUNFULL
import React, { useState } from "react";import { Button, Settings, StyleSheet, Text, View } from "react-native";const App = () => {
  const [data, setData] = useState(Settings.get("data"));
  const storeData = data => {
    Settings.set(data);
    setData(Settings.get("data"));
  };
  return (
    <View style={styles.container}>
      <Text>Stored value:</Text>
      <Text style={styles.value}>{data}</Text>
      <Button onPress={() => storeData({ data: "React" })} title="Store 'React'" />
      <Button onPress={() => storeData({ data: "Native" })} title="Store 'Native'" />
    </View>
  );};const styles = StyleSheet.create({
  container: { flex: 1, justifyContent: "center", alignItems: "center"},
  value: { fontSize: 24, marginVertical: 12}});export default App;

Most Used Web Frameworks

in 2021

(https://www.statista.com/statistics/1124699/worldwide-developer-survey-most-used-frameworks-web/)

React.js 40.14%

jQuery: 34.43%

Express: 23.82%

Angular: 22.96%

Vue.js: 18.97%

ASP.NET Core: 18.1%

Flask: 16.14%

ASP.NET: 15.74%

Django: 14.99%

Spring: 14.56%

Angular.js: 11.49%

Laravel: 10.12%