Native Base工具栏不起作用

时间:2017-05-06 23:07:24

标签: reactjs react-native native-base

我试图按照文档中的Native Base教程进行操作。

https://nativebase.io/docs/v0.1.0/components

一旦我尝试添加工具栏,我就会收到以下错误。工具栏组件似乎不在包中。有谁知道Native Base的文档是否良好?

import React, { Component } from 'react'
import { Container, Toolbar, Button, Text, Content, View } from 'native-base';
import Icon from 'react-native-vector-icons/Ionicons';

export default class App extends Component {

  constructor(props) {
    super(props)

    this.state = {

    }
  }

  render() {
    return (
      <Container>
        <Toolbar></Toolbar>
        <Content>
          <View>
            <Text>Works! And some</Text>
          </View>
        </Content>
      </Container>
    )
  }
}

enter image description here

0 个答案:

没有答案