Below is the code snippet of my screen, styling is working perfectly on 2 text views but not on the last one. Can anyone help me?
<View style={styles.userInfo}>
<View style={styles.section}>
<Text style={[header3,styles.space,baseColor]}>{this.state.data.postCount}</Text>
<Text style={[secondary1, hintColor]}>Posts</Text>
</View>
<View style={styles.section}>
<Text style={[header3,styles.space,baseColor]}>{formatNumber(this.state.data.followersCount)}</Text>
<Text style={[secondary1, hintColor]}>Followers</Text>
</View>
<View style={styles.section}>
<Text styles={[header3,styles.space,baseColor]}>{this.state.data.followingCount}</Text>
<Text style={[secondary1, hintColor]}>Following</Text>
</View>
</View>
<Gallery items={this.state.data.images} />
</ScrollView>
You have extra s in the last text style
try this
<View style={styles.userInfo}>
<View style={styles.section}>
<Text style={[header3,styles.space,baseColor]}>{this.state.data.postCount}</Text>
<Text style={[secondary1, hintColor]}>Posts</Text>
</View>
<View style={styles.section}>
<Text style={[header3,styles.space,baseColor]}>{formatNumber(this.state.data.followersCount)}</Text>
<Text style={[secondary1, hintColor]}>Followers</Text>
</View>
<View style={styles.section}>
<Text style={[header3,styles.space,baseColor]}>{this.state.data.followingCount}</Text>
<Text style={[secondary1, hintColor]}>Following</Text>
</View>
</View>
<Gallery items={this.state.data.images} />
</ScrollView>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With