flocks.js icon indicating copy to clipboard operation
flocks.js copied to clipboard

Suss out whether react-native can be a thing

Open StoneCypher opened this issue 9 years ago • 3 comments

Currently getting help at https://github.com/jrm2k6/hello-flocks/blob/master/index.ios.js from @jrm2k6

StoneCypher avatar May 21 '15 16:05 StoneCypher

Need to get rid of React.render. I suggest you base the new architecture on setting the state of a special flocks root component inheriting from <View/>. Might as well switch it in the html version as well, seems like it would be cleaner anyway.

<FlocksRoot>
  <Stuff/>
</FlocksRoot>

jtremback avatar May 22 '15 13:05 jtremback

That would mean that a user's component couldn't be the root, which poses problems of its own.

StoneCypher avatar May 23 '15 00:05 StoneCypher

I may do that in native, if there isn't another choice, however.

StoneCypher avatar May 23 '15 00:05 StoneCypher