All Projects → syanbo → RNPlayground

syanbo / RNPlayground

Licence: other
React Native 相关,Prettier ESLint Redux Rematch使用

Programming Languages

javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language
shell
77523 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language
Starlark
911 projects

Projects that are alternatives of or similar to RNPlayground

api-with-express
🌈 API with Express
Stars: ✭ 25 (-10.71%)
Mutual labels:  prettier
healthier
🧘‍♀️ Healthier is an opinionated style agnostic code linter – a friendly companion to Prettier
Stars: ✭ 78 (+178.57%)
Mutual labels:  prettier
microservice nodejs template
🦄 Microservice Starter Kit by Nodejs + Typescript + Docker + Lerna + Eslint + Prettier
Stars: ✭ 49 (+75%)
Mutual labels:  prettier
promotion-web
基于React: v18.x.x/Webpack: v5.x.x/React Router v6.x.x/ Antd: v5..x.x/Fetch Api/ Typescript: v4.x.x 等最新版本进行构建...
Stars: ✭ 374 (+1235.71%)
Mutual labels:  prettier
rematch
The Redux Framework
Stars: ✭ 8,340 (+29685.71%)
Mutual labels:  rematch
nextjs-with-chakra-ui-boilerplate
Next.js with Chakra UI boilerplate. PWA ready with storybook and tests configured.
Stars: ✭ 48 (+71.43%)
Mutual labels:  prettier
Dilettantes-Guide-to-Linting
Setting up ESLint, Prettier, VS Code, and the AirBnB style guide in beautiful harmony.
Stars: ✭ 18 (-35.71%)
Mutual labels:  prettier
nextsss
Next.js static site starter including full setup for TypeScript, Tailwind CSS, Google Analytics, Next SEO, etc.
Stars: ✭ 80 (+185.71%)
Mutual labels:  prettier
vital
Starter template for Vite with React (TypeScript). Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
Stars: ✭ 151 (+439.29%)
Mutual labels:  prettier
website-template
静的Webサイト制作を少しモダンにするためのテンプレート
Stars: ✭ 62 (+121.43%)
Mutual labels:  prettier
prettier.el
Prettier code formatting for Emacs.
Stars: ✭ 129 (+360.71%)
Mutual labels:  prettier
prettier-config-solidity
Prettier config optimized to reduce AST churn & conform to solidity spec
Stars: ✭ 28 (+0%)
Mutual labels:  prettier
expo-ticket-app
💎 A React Native ticket app to start learning Expo very quickly with selected libraries 📚
Stars: ✭ 87 (+210.71%)
Mutual labels:  rematch
create-next-stack
Create Next Stack is a website and CLI tool used to easily set up the boilerplate of new Next.js apps.
Stars: ✭ 149 (+432.14%)
Mutual labels:  prettier
eslint-config-callstack
ESLint preset extending Flow, Prettier and Jest
Stars: ✭ 45 (+60.71%)
Mutual labels:  prettier
invig
🌿 Invig automatically converts ES5 & CoffeeScript codebases to ES6 with Aligned JavaScript Standard Style
Stars: ✭ 62 (+121.43%)
Mutual labels:  prettier
flowbite
The most popular and open-source library of Tailwind CSS components
Stars: ✭ 3,727 (+13210.71%)
Mutual labels:  prettier
taro3-vue3-template
一个基于 Taro3 和 Vue3 框架微信小程序模版。 核心技术采用Taro3、Vue3、TypeScript、NutUi、Vux4/Pinia、VueUse
Stars: ✭ 115 (+310.71%)
Mutual labels:  prettier
react-app-boilerplate-2018
Bootstrap for a React App with Redux, React Router, Styled Components, Jest and Hot Reloading,
Stars: ✭ 20 (-28.57%)
Mutual labels:  prettier
react-you-do-you
How I use React + Redux + Material-UI + TypeScript – you do you 💖
Stars: ✭ 103 (+267.86%)
Mutual labels:  prettier

React-Native

设置路径别名支持IDE跳转联想

  • yarn add -D babel-plugin-root-import
  • babel.config.js 添加 plugins
module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    [
      'babel-plugin-root-import',
      {
        paths: [
          {
            rootPathPrefix: '~',
            rootPathSuffix: 'src',
          },
        ],
      },
    ],
  ],
};
  • 在项目根目录下添加jsconfig.json
{
  "compilerOptions": {
    "jsx": "react-native",
    "allowSyntheticDefaultImports": false,
    "experimentalDecorators": true,
    "baseUrl": ".",
    "paths": {
      "~/*": ["src/*"]
    }
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules"]
}
  • 在项目中愉快的使用
import env from '~/constants/env';

配置多环境

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].