Introduction
Really with react-native we do get the key benefits of flex package as well as some transforms which we are going to benefit from.
We don’t have access to a straightforward physics, and even though they certainly were included in IOS7. If you’d like physics you need some JavaScript libraries like rebound from Twitter, or any people that don’t need a DOM.
Concept
We will establish a cards. On touch press/grant we are going to figure out the offset in the card to touch and begin generating the modify to move/rotate the credit.
It’s mainly hassle free after you plunge in however.
That which we don’t do.
Physics. You can easily apply a bouncy spring program, but we’re going to ensure that it stays quick with a drag principle.
Generate a simple credit
We are going to create a standard wrapper bin then generate a cards see. We’re going to focus everyting within our container making use of alignItems and justifyContent both center Our card will you need to be 300 by 300 , with a bit of cushioning, and line.
Now that we’ve an universal credit we could succeed see some nicer with a graphic, and some text. (more…)