0.0.4 • Published 3 years ago
ip-icon-button v0.0.4
InterPro React Native Template
Development
Installation
Prerequisites
- Install Git
- Install Install Node.js & NPM
- Install React Native
- Install IntelliJ IDEA
Repository Setup
From this template:
- Go to the organization page and create a new repository.
- Select this template (
react-native-template
) and name it. - Clone from the repository you just created and continue at
From GitHub
. - Remove this section from README.md.
From GitHub:
- Start a new Git Bash session, or any Bash terminal session.
- Clone this repository and install its dependencies:
git clone <repo URL> # Copy the URL from the 'Code' button
cd <project> # 'project' will be the repository's name, as a folder
npm install
npx husky install # Install Git hooks
This will also install the Git pre-commit & post-merge hooks. 3. Open the project folder in IntelliJ
TODO
Prerequisites
- Android Studio / Xcode
ESLint IntelliJ Config
- In IntelliJ, go to Settings -> Languages & Frameworks -> Javascript -> Code Quality Tools -> ESLint.
- Set to automatic configuration.
- Check 'Run
eslint --fix
on save'.
Component Template Installation
- Preferences -> Editor -> Live Templates
- Add (+) Template Group called 'React Native'
- Add (+) Live Template and copy from below:
import React, {FunctionComponent} from 'react';
import { Text, View, StyleSheet } from 'react-native';
interface $componentName$Props {
}
export const $componentName$ : FunctionComponent<$componentName$Props> = (props) => {
return (
<Text>
$END$
</Text>
);
};
const styles = StyleSheet.create({
});
- Click on 'Define', then check 'Javascript & Typescript'.
- Apply.
Roadmap
- TypeScript (Type-checking and Linting)
- Pre-Commit / Post-Merge Git Hooks
- Folder Structure
- Src
- Components
- Screens
- Models
- Services
- Shared
- Components
- Screens
- Models
- Services
- Theme.ts
- Assets
- Test
- Src
- Custom Icon Font
- Platform-Specific Bridges
0.0.4
3 years ago