A React Native library for adding easter eggs and hidden features via gesture detection.
react-native-egg is a React Native library that allows developers to add easter eggs and hidden interactions to their mobile apps through gesture detection. It solves the problem of making apps more engaging and fun by enabling secret triggers for messages or features via simple swipe and tap sequences. Developers can define custom gesture patterns to activate callbacks, enhancing user experience with playful surprises.
React Native developers looking to add fun, hidden elements or easter eggs to their mobile applications, particularly those building consumer-facing apps where user engagement and discovery are priorities.
Developers choose react-native-egg because it’s a lightweight, easy-to-integrate solution specifically designed for adding playful interactions without complex setup. Its simple API and gesture-based triggering offer a unique way to enhance app personality and user delight compared to standard UI components.
react-native-egg make your react native app infinitely more fun !!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The API mimics a standard <View> component with simple props like 'setps' and 'onCatch', making it quick to add easter eggs without complex setup, as shown in the basic usage example.
Developers can define their own trigger patterns using the 'setps' prop with characters for swipes and taps, supporting sequences up to 15 characters for flexibility, like the Konami code example.
The 'touchOpacity' prop provides TouchableOpacity-like visual feedback during gesture input, enhancing user experience without extra styling, as mentioned in the props table.
Configurable 'timeLimit' prop prevents accidental triggers by setting a window for gesture completion, improving reliability, with a default of 2000 milliseconds.
The 'setps' prop has a max length of 15, restricting the complexity and length of gesture sequences that can be implemented, which may not suffice for intricate easter eggs.
Children cannot have onPress or onScroll props, complicating integration with interactive elements like buttons or scrollable lists, as warned in the README's basic usage section.
Lacks support for multi-touch gestures, gesture cancellation, or integration with other libraries, making it unsuitable for sophisticated interactions beyond basic sequences.