I try to follow the example on the docs but every time I try to render the countdown I get:
Invariant Violation: View config not found for name path. Make sure to start component names with a capital letter.
This error is located at:
in path (created by CountdownCircleTimer)
in svg (created by CountdownCircleTimer)
in div (created by CountdownCircleTimer)
Doesn't it seems weird is trying to render a div on react native? am I missing something here?
TIA.
const Countdown = ({navigation, route}) => {
return (
<View>
<View>
<CountdownCircleTimer
isPlaying
duration={10}
colors={[['#004777', 0.4], ['#F7B801', 0.4], ['#A30000', 0.2]]}>
{({remainingTime, animatedColor}) => (
<Animated.Text style={{color: animatedColor}}>
{remainingTime}
</Animated.Text>
)}
</CountdownCircleTimer>
</View>
<Text>Siguiente:</Text>
<Text>8 Push ups</Text>
</View>
);
};
{
"name": "frontend",
"version": "0.0.2",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@apollo/react-hooks": "^3.1.5",
"@react-native-community/async-storage": "^1.11.0",
"@react-native-community/datetimepicker": "^2.3.2",
"@react-native-community/masked-view": "^0.1.7",
"@react-navigation/native": "^5.1.1",
"@react-navigation/stack": "^5.2.9",
"apollo-cache-inmemory": "^1.6.5",
"apollo-client": "^2.6.8",
"apollo-link-http": "^1.5.17",
"graphql": "^15.0.0",
"graphql-tag": "^2.10.3",
"moment": "^2.24.0",
"react": "16.9.0",
"react-apollo": "^3.1.5",
"react-countdown-circle-timer": "^2.3.7",
"react-native": "0.61.5",
"react-native-elements": "^1.2.7",
"react-native-gesture-handler": "^1.6.0",
"react-native-iap": "^4.4.9",
"react-native-mixpanel": "^1.2.0",
"react-native-reanimated": "^1.7.0",
"react-native-safe-area-context": "^0.7.3",
"react-native-screens": "^2.3.0",
"react-native-svg": "^12.1.0",
"react-native-svg-transformer": "^0.14.3",
"react-native-vector-icons": "^6.6.0"
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/runtime": "^7.9.2",
"@react-native-community/eslint-config": "^0.0.5",
"babel-jest": "^24.9.0",
"eslint": "^6.5.1",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.0",
"react-test-renderer": "16.9.0"
},
"jest": {
"preset": "react-native"
}
}