MCPcopy Index your code
hub / github.com/enesozturk/react-native-instagram

github.com/enesozturk/react-native-instagram @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
21 symbols 79 edges 22 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img alt="app icon" height="128" src="https://github.com/enesozturk/react-native-instagram/raw/main/assets/icon.png">
<h1 align="center">React Native Instagram Page Transition</h1>

Warning This is an experimental project. I have always been impressed with Instagram's iOS page transitions. I tried to implement the same with the following technologies. The result was much better than I expected. There are still some things to do to provide the same experience. Using it in production is not recommended.

Stack

Want to try?

If you want to try this on your device, you can install and run the app in a few seconds with the following commands;

Install the packages:

yarn install

Run the app with the following command.

Warning Be sure that Expo CLI is installed.

yarn ios

That's it, enjoy 🤞🏽

Unsplash API

In this project, I used Unsplash API to get awesome images. To try on your own, you'll need to create and app on Unsplash dashboard and get the Client ID and replace that id in the /constants/api.ts with YOUR_UNSPLASH_CLIENT_ID.

Challanges / Todo's

  • [ ] Integrate with the transition api from Reanimated.
  • [ ] Custom list inside details screen. Just like the Instagram, in every detail screen, we can implement new lists by fetching another query. Currently, it's just rendering FlashList with only selected image.
  • [ ] After scrolling down in details list, when close the details screen, we can do show first image by fading or change the original one with the last image scrolled.
  • [ ] Integrating this with the React Navigation would be super cool.

License

The source code is made available under the MIT license.

Show Your Support

If you like this project, please give a star and follow me on Github for more 🤩

Core symbols most depended-on inside this repo

useDetailScreen
called by 2
hooks/useDetailScreen.ts
getHipotenus
called by 1
utils/calculations.ts
parseResponse
called by 1
screens/Home.tsx
addNewBatch
called by 1
screens/Home.tsx
getHipotenus
called by 1
hooks/useGestureHandlerValues.ts
useGestureHandlerValues
called by 1
hooks/useGestureHandlerValues.ts
useAnimatedValues
called by 1
hooks/use-animated-values.ts
calculatePosition
called by 1
hooks/use-animated-values.ts

Shape

Function 21

Languages

TypeScript100%

Modules by API surface

screens/Home.tsx3 symbols
hooks/useGestureHandlerValues.ts2 symbols
hooks/use-animated-values.ts2 symbols
components/ImageCard.tsx2 symbols
utils/calculations.ts1 symbols
utils/api.ts1 symbols
screens/Details.tsx1 symbols
hooks/useDetailScreen.ts1 symbols
context/detail-screen.tsx1 symbols
components/ImageItem.tsx1 symbols
components/ImageHeader.tsx1 symbols
components/ImageDetailListItem.tsx1 symbols

For agents

$ claude mcp add react-native-instagram \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact