Skip to content

Commit 6d6c7ae

Browse files
committed
New version 0.2.0 is here with fully converted to Typescript
1 parent dee59c7 commit 6d6c7ae

File tree

78 files changed

+3961
-12249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+3961
-12249
lines changed

.eslintrc.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
module.exports = {
2+
root: true,
3+
extends: [
4+
"@react-native-community",
5+
"airbnb-typescript",
6+
"prettier",
7+
"prettier/@typescript-eslint",
8+
"prettier/react"
9+
],
210
parser: "babel-eslint",
3-
extends: "airbnb",
411
plugins: ["react", "react-native"],
512
env: {
613
jest: true,
@@ -11,7 +18,7 @@ module.exports = {
1118
"react/jsx-filename-extension": [
1219
"error",
1320
{
14-
extensions: [".js", ".jsx"]
21+
extensions: [".js", ".jsx", ".tsx", ".ts"]
1522
}
1623
],
1724
// for post defining style object in react-native

.prettierrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
bracketSpacing: true,
3+
jsxBracketSameLine: false,
4+
singleQuote: false,
5+
trailingComma: "all",
6+
tabWidth: 2,
7+
semi: true,
8+
};

example/.eslintrc.js

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
module.exports = {
2-
parser: "babel-eslint",
3-
extends: "airbnb",
4-
plugins: ["react", "react-native"],
5-
env: {
6-
jest: true,
7-
"react-native/react-native": true
8-
},
9-
rules: {
10-
// allow js file extension
11-
"react/jsx-filename-extension": [
12-
"error",
13-
{
14-
extensions: [".js", ".jsx"]
15-
}
16-
],
17-
// for post defining style object in react-native
18-
"no-use-before-define": ["error", { variables: false }],
19-
// react-native rules
20-
"react-native/no-unused-styles": 2,
21-
"react-native/split-platform-components": 2,
22-
"react-native/no-inline-styles": 2,
23-
"react-native/no-raw-text": 2
24-
}
2+
root: true,
3+
extends: '@react-native-community',
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
256
};

example/.flowconfig

Lines changed: 0 additions & 75 deletions
This file was deleted.

example/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ build/
2929
local.properties
3030
*.iml
3131

32+
# Visual Studio Code
33+
#
34+
.vscode/
35+
3236
# node.js
3337
#
3438
node_modules/

example/.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
bracketSpacing: false,
3+
jsxBracketSameLine: true,
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
};

example/App.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

example/App.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react';
2+
import {SafeAreaView, StatusBar} from 'react-native';
3+
import InputBar from './build/dist/InputBar';
4+
5+
const App = () => {
6+
return (
7+
<>
8+
<StatusBar barStyle="dark-content" />
9+
<SafeAreaView style={{flex: 1}}>
10+
<InputBar multiline height={null} />
11+
</SafeAreaView>
12+
</>
13+
);
14+
};
15+
16+
export default App;
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)