From c6b54930b64270663df744c083cd763bb2668a27 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 20 Apr 2017 15:06:57 -0700 Subject: [PATCH] [add] StatusBar stub component Fix #425 --- src/components/StatusBar/index.js | 14 ++++++++++++++ src/index.js | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 src/components/StatusBar/index.js diff --git a/src/components/StatusBar/index.js b/src/components/StatusBar/index.js new file mode 100644 index 00000000..71946616 --- /dev/null +++ b/src/components/StatusBar/index.js @@ -0,0 +1,14 @@ +import { Component } from 'react'; + +class StatusBar extends Component { + static setBackgroundColor() {} + static setBarStyle() {} + static setHidden() {} + static setNetworkActivityIndicatorVisible() {} + static setTranslucent() {} + render() { + return null; + } +} + +module.exports = StatusBar; diff --git a/src/index.js b/src/index.js index 931046b6..bda26917 100644 --- a/src/index.js +++ b/src/index.js @@ -32,6 +32,7 @@ import Image from './components/Image'; import ListView from './components/ListView'; import ProgressBar from './components/ProgressBar'; import ScrollView from './components/ScrollView'; +import StatusBar from './components/StatusBar'; import Switch from './components/Switch'; import Text from './components/Text'; import TextInput from './components/TextInput'; @@ -87,6 +88,7 @@ const ReactNative = { ListView, ProgressBar, ScrollView, + StatusBar, Switch, Text, TextInput,