Parallax and Expanding ScrollView Header with React Native and Animated.Value Interpolation

With only a few lines of code you can create a simple expanding ScrollView header in React Native. This looks especially great if you have an image as the header as it will add a parallax effect as you scroll down and create a zooming effect on iOS as you bounce the ScrollView when it…

Read More

Memory Management In iOS Applications

In any language that passes values by reference memory management will need to be front of mind. In iOS you can use the memory graph and on Android you have the Memory Profiler to help you trace unreleased objects and mitigate leaks. Scenario Say you want to an object to be notified when changes occur…

Read More

Android File Storage

The Android file system gives you the flexibility to scope access to your files as you see fit. Storing files within application scope Context.getCacheDir() This is your applications ephemeral storage directory. These files are can be removed by the system at any time and are removed when you uninstall your application. Context.getFilesDir() Store more permanent…

Read More

Animating Views With UILongPressGestureRecognizer

Creating a button in iOS is simple but if you want a more responsive button like the ones Apple Uses in their app store, you need to get creative with gestures. Feel free to reproduce and implement this gist however you see fit. https://gist.github.com/willconno/dd891db6764a82bbc6e9633e9ec7b67c UILongPressGestureRecognizer In order to be notified when the user first presses…

Read More