How do I resolve this error Cannot read the indefinite color property

Asked

Viewed 49 times

0

I’ve tried to change color change Theme but nothing works I’m creating an app with expo using nodejs and with Visual Studio Code

 const hideErrorMessage = !renderErrorMessage && !errorMessage;
        return (<View style={StyleSheet.flatten([styles.container, containerStyle])}>
        {renderText(label, Object.assign({ style: labelStyle }, labelProps), Object.assign({ fontSize: 16, **color**: theme.colors.grey3 }, Platform.select({
                android: Object.assign({}, fonts.android.bold),
                default: {
                    fontWeight: 'bold',
                },
            })))}

            android: Object.assign({}, fonts.android.bold),
            default: {
                fontWeight: 'bold',
            },
        })))}´

Says the error is in the color variable that it is not set (color that is bold) If anyone knows how to solve already thank

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.