FuYaoDe/react-native-app-intro

Warning: failed prop type fontSize supply to View

tavriaforever opened this issue · 0 comments

iphone 6 ios 10 3 14e8301 2017-07-18 12-51-42

But in my code I don`t apply fontSize to View, I do it to Text component

const styles = StyleSheet.create({
  slide: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#EFEFEF',
    padding: 40,
    paddingTop: 0,
  },
  description: {
    fontSize: 16,
    textAlign: 'center',
  },
  image: {
    resizeMode: 'contain',
    marginBottom: verticalScale(50),
  },
  image_step_1: {
    width: scale(208),
  },
  image_step_2: {
    width: scale(182),
  },
  image_step_3: {
    width: scale(278),
  },
  buttonContainer: {
    alignItems: 'center',
  },
});

...

render() {
    SplashScreen.hide();

    return (
      <AppIntro
        showSkipButton={false}
        showDoneButton={false}
        dotColor="#DBDBDB"
        activeDotColor={styleVars.color.brandGreen}
      >

      <View style={[styles.slide]}>
          <View level={20}>
            <Image style={[styles.image, styles.image_step_1]} source={require('../assets/step1.png')} />
          </View>
          <View level={10}>
            <Text style={styles.description}>
              lorem ipsum loren pananamanga
            </Text>
          </View>
        </View>

What I am doing wrong?)