UNPKG

rn-boat-framework

Version:

24 lines (19 loc) 440 B
import { NativeModules } from 'react-native'; const put = (key, value) => { return NativeModules.GlobalConfig.put([key, value]); } const get = (key) => { return NativeModules.GlobalConfig.get([key]); } const remove = (key) => { NativeModules.GlobalConfig.remove([key]); } const getAppScenes = () => { return NativeModules.GlobalConfig.getAppScenes(); } export default { put, get, remove, getAppScenes };