From 4a469635946935059a2fb8cdb67e0a715b128338 Mon Sep 17 00:00:00 2001 From: liusy182 Date: Sun, 30 Oct 2016 13:45:23 +0800 Subject: [PATCH] change nabber to Animated.View to allow for extension --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index faaa527..199d863 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,8 @@ import { StatusBar, Text, View, - Platform + Platform, + Animated } from 'react-native'; import NavbarButton from './NavbarButton'; @@ -107,11 +108,11 @@ class NavigationBar extends Component { return ( {statusBar} - + {this.getTitleElement(this.props.title)} {this.getButtonElement(this.props.leftButton, { marginLeft: 8, })} {this.getButtonElement(this.props.rightButton, { marginRight: 8, })} - + ); }