React-native Expo:永久违反:未找到名称的视图配置

时间:2018-07-25 13:12:02

标签: react-native expo

我正尝试在Snake.expo的npm上找到一个模块。

但是出现以下错误。

Invariant Violation: View config not found for name RNMaterialLetterIcon

我在哪里做错了?

链接:https://snack.expo.io/SyZa8lUEQ

import React, { Component } from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View
} from 'react-native';
import RNMaterialLetterIcon from 'react-native-material-letter-icon';

type Props = {};
export default class App extends Component<Props> {
  render() {
    return (
      <View style={styles.container}>
      <RNMaterialLetterIcon
      size={80}
      border={true}
      borderColor={"#dd2c00"}
      borderSize={2}
      />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  }
});

0 个答案:

没有答案