All Projects → EvanBacon → react-native-ink

EvanBacon / react-native-ink

Licence: MIT license
React Native for CLIs

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to react-native-ink

apple-notes
A clone of the Apple Notes app but made universally with Expo
Stars: ✭ 53 (+89.29%)
Mutual labels:  react-native-web, expo, expo-web
react-flappy-bird
A side-scroller where the player controls a bird, attempting to fly between columns of green pipes without hitting them.
Stars: ✭ 55 (+96.43%)
Mutual labels:  react-native-web, expo, expo-web
Match Media
Universal polyfill for match media API using Expo APIs on mobile
Stars: ✭ 95 (+239.29%)
Mutual labels:  react-native-web, expo
Expo Cli
Tools for creating, running, and deploying universal Expo and React Native apps
Stars: ✭ 1,993 (+7017.86%)
Mutual labels:  react-native-web, expo
Awesome React Native Web
💙 React Native Web patterns, techniques, tips, and tricks ✨
Stars: ✭ 215 (+667.86%)
Mutual labels:  react-native-web, expo
Expo Spotify
Spotify UI Clone with React Native & Expo || web support => https://expo-spotify.vercel.app
Stars: ✭ 287 (+925%)
Mutual labels:  react-native-web, expo
Examples
Example projects that demonstrate how to use Expo APIs and integrate Expo with other popular tools
Stars: ✭ 747 (+2567.86%)
Mutual labels:  react-native-web, expo
Margarita
[not actively maintained] Mobile and Web application implementing Kiwi.com Tequila API
Stars: ✭ 213 (+660.71%)
Mutual labels:  react-native-web, expo
Expo Dark Mode Switch
A beautiful React dark mode switch component for iOS, Android, and Web
Stars: ✭ 137 (+389.29%)
Mutual labels:  react-native-web, expo
pro-chat
Full featured chat app built with 💙 Expo & Firebase 🔥
Stars: ✭ 24 (-14.29%)
Mutual labels:  react-native-web, expo
react-native-web-expo-boilerplate
I am no longer in maintenance
Stars: ✭ 64 (+128.57%)
Mutual labels:  react-native-web, expo
expo-next-monorepo-example
Create a universal React app using Expo and Next.js in a monorepo
Stars: ✭ 268 (+857.14%)
Mutual labels:  react-native-web, expo
Instagram
A universal instagram clone built with Expo
Stars: ✭ 258 (+821.43%)
Mutual labels:  react-native-web, expo
Lego Expo
Play with Lego bricks anywhere using Expo
Stars: ✭ 65 (+132.14%)
Mutual labels:  react-native-web, expo
Expo-Badge
A design study for Expo badges
Stars: ✭ 22 (-21.43%)
Mutual labels:  react-native-web, expo
Pillar Valley
👾A cross-platform video game built with Expo, three.js, and Firebase! 🎮🕹
Stars: ✭ 242 (+764.29%)
Mutual labels:  react-native-web, expo
react-native-expo-web
All-in-one React Native project (Expo + react-native-web)
Stars: ✭ 16 (-42.86%)
Mutual labels:  react-native-web, expo
react-native-swag-toggle
A Swag Toggle for React Native and Expo Web
Stars: ✭ 14 (-50%)
Mutual labels:  react-native-web, expo-web
react-native-login-screen-android-ios
React Native Login Screen for Android & iOS
Stars: ✭ 143 (+410.71%)
Mutual labels:  expo
ink roguelike
A narrative mini-roguelike written completely in ink.
Stars: ✭ 13 (-53.57%)
Mutual labels:  ink

👋 Welcome to
react-native-ink

A library for creating CLIs with agnostic primitives like View, Text, Image, TextInput, etc...

GitHub Actions status


NOT READY YET :]

🏁 Setup

Install react-native-ink in your project.

yarn add react-native-ink

Alias react-native to react-native-ink:

  1. yarn add -D babel-plugin-module-resolver

  2. Create alias: babel.config.js

    module.exports = {
      // ...
      plugins: [
        [
          'babel-plugin-module-resolver',
          {
            alias: {
              'react-native': 'react-native-ink',
            },
          },
        ],
      ],
    };

⚽️ Usage

import React, { useEffect, useState } from 'react';
import { AppRegistry, View, Text, Image, TextInput } from 'react-native';

const Counter = () => {
  const [counter, setCounter] = useState(0);

  useEffect(() => {
    const timer = setInterval(() => {
      setCounter(prevCounter => prevCounter + 1);
    });

    return () => {
      clearInterval(timer);
    };
  });

  return (
    <View style={{ padding: 1 }}>
      <Text style={{ color: 'green' }}>{counter} tests passed</Text>
    </View>
  );
};

AppRegistry.registerComponent('main', () => Counter);

License

The Expo source code is made available under the MIT license. Some of the dependencies are licensed differently, with the BSD license, for example.


License: MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].