Skip to content

Conversation

@Ajbadenhorst
Copy link

An example of how this prop can be used is the following, used in react-native to switch to "Number copied to clipboard" text being typed out when copying.

    <TypeWriter
            startTyped={copied ? false : true}
            fixed
            minDelay={10}
            maxDelay={10}
            typing={copied ? 1 : 0}
            onTypingEnd={async () => {
              await sleep(1500)
              this.setState({
                copied: false
              })
            }}
          >
            <Text titleBlue={copied} bold primary size={11}>
              {copied ? "Number copied to clipboard" : item.description}
            </Text>
          </TypeWriter>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant