pughpugh / react-countdown-clock

HTML5 canvas countdown clock React component
ISC License
187 stars 83 forks source link

Invariant Violation: View config not found for name canvas #47

Closed lgupta54 closed 6 years ago

lgupta54 commented 6 years ago

Invariant Violation: View config not found for name canvas

    <View>
                <Text style={{textAlign: 'center'}}>
                    OTP will expire in 60 Second's
                </Text>
                { this.state.timer?
                    <Text style={styles.wrongNumberText} onPress={this._sendOTP}>
                        Resend OTP
                    </Text>
                    :
                    <ReactCountdownClock seconds={60}
                                         color="#000"
                                         alpha={0.9}
                                         size={300}
                                         />
                }
            </View>
alexsmartens commented 6 years ago

+1

pughpugh commented 6 years ago

Are you trying to use this with react-native? If so, that will not work as this is a HTML component.