Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Multiple instances of Sketch component #42

Open
gorork opened this issue Jan 25, 2018 · 1 comment
Open

Multiple instances of Sketch component #42

gorork opened this issue Jan 25, 2018 · 1 comment

Comments

@gorork
Copy link

gorork commented Jan 25, 2018

Is it possible to have several independent sketch elements? It seems only a single Sketch component is being loaded on the screen.

To be more specific - this what I'm trying to do:

Component1 contains a single Sketch component:

<View>
     <Sketch
          style={styles.notes}
          ref={sketch => {
            this.sketch = sketch;
          }}
          strokeColor="#999999"
          strokeThickness={2}
     />
</View>

Then, I create several Component1 instances:

<View>
     <Component1 />
     <Component1 />
     <Component1 />
</View>

I expect to see 3 independent Sketch components in which user can draw different strokes. However, only a single Sketch component actually being loaded.

@gorork
Copy link
Author

gorork commented Jan 30, 2018

@jgrancher Any tips on what is limiting the number of Sketch instances being active?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant