react-native-vector-icons: Error while updating property 'fontSize' in shadow node of type: RCTText
- Review the documentation: https://github.com/oblador/react-native-vector-icons
- Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues
Environment
OS: Android 6.0.1 (real device, not emulator) react-native-vector-icons: ^7.0.0 react: 16.11.0, react-native: 0.62.2,
Description
The issue is rather simple.
Whenever I use react-native-vector-icons, get the error, Error while updating property 'fontSize' in shadow node of type: RCTText

Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve
import React from 'react';
import {View, TouchableOpacity, Text, StyleSheet} from 'react-native';
import Ionicons from 'react-native-vector-icons/Ionicons';
const Header = () => {
return (
<View style={styles.viewStyle}>
<TouchableOpacity onPress={() => alert('Menu')}>
<Ionicons name="md-apps" size={20} />
</TouchableOpacity>
<Text style={styles.textStyle}>ALL PRODUCTS</Text>
<TouchableOpacity onPress={() => alert('Shopping Cart')}>
<Text>C</Text>
</TouchableOpacity>
</View>
);
};
const styles = StyleSheet.create({
viewStyle: {
flexDirection: 'row',
backgroundColor: '#f8f8f8',
justifyContent: 'space-between',
alignItems: 'center',
height: 60,
},
textStyle: {
fontSize: 12,
fontWeight: 'bold',
},
cartStyle: {
marginHorizontal: 15,
},
});
export default Header;
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15
error while updating property fontWeight in shadow node of type rcttext in react-native and there are no strings in the code for fontWeight
@haloriyan @aqeebimtiaz passing style={{fontSize: 30}} will bypass this error
In Android I am getting:
Error while updating property 'fontWeight in shadow node of type: AndroidTextinput java.lang.Double cannot be cast to java.lang.String
Anything for this?