-
Notifications
You must be signed in to change notification settings - Fork 957
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(template): update template modules to new cli config
- Loading branch information
Showing
127 changed files
with
4,956 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/templates/template-ui-kitten-typescript/_tsconfig.json
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
src/templates/template-ui-kitten-typescript/dependencies.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/templates/template-ui-kitten-typescript/devDependencies.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
src/templates/template-ui-kitten-typescript/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
{ | ||
"name": "react-native-template-ui-kitten-typescript", | ||
"description": "React Native template with UI Kitten and TypeScript", | ||
"version": "4.2.0-beta.2", | ||
"license": "MIT", | ||
"author": "akveo <contact@akveo.com>", | ||
"homepage": "https://github.com/akveo/react-native-ui-kitten#readme", | ||
"repository": "git+https://github.com/akveo/react-native-ui-kitten.git", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/akveo/react-native-ui-kitten.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/akveo/react-native-ui-kitten/issues" | ||
}, | ||
"keywords": [ | ||
"react-native", | ||
"ui-kitten", | ||
"typescript", | ||
"jest", | ||
"template", | ||
"boilerplate" | ||
], | ||
"scripts": { | ||
"install": "node install.js" | ||
} | ||
"files": [ | ||
"template", | ||
"template.config.js" | ||
] | ||
} |
4 changes: 4 additions & 0 deletions
4
src/templates/template-ui-kitten-typescript/template.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
placeholderName: 'HelloWorld', | ||
templateDir: './template', | ||
}; |
77 changes: 77 additions & 0 deletions
77
src/templates/template-ui-kitten-typescript/template/App.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/** | ||
* Sample React Native App | ||
* https://github.com/facebook/react-native | ||
* | ||
* Generated with the UI Kitten TypeScript template | ||
* https://github.com/akveo/react-native-ui-kitten | ||
* | ||
* Documentation: https://akveo.github.io/react-native-ui-kitten/docs | ||
* | ||
* @format | ||
*/ | ||
|
||
import React from 'react'; | ||
import { | ||
ImageProps, | ||
ImageStyle, | ||
StyleSheet, | ||
} from 'react-native'; | ||
import { | ||
ApplicationProvider, | ||
Button, | ||
Icon, | ||
IconRegistry, | ||
Layout, | ||
Text, | ||
} from 'react-native-ui-kitten'; | ||
import { | ||
mapping, | ||
light as theme, | ||
} from '@eva-design/eva'; | ||
import { EvaIconsPack } from '@ui-kitten/eva-icons'; | ||
|
||
/** | ||
* Use any valid `name` property from eva icons (e.g `github`, or `heart-outline`) | ||
* https://akveo.github.io/eva-icons | ||
*/ | ||
const HeartIcon = (style: ImageStyle): React.ReactElement<ImageProps> => ( | ||
<Icon {...style} name='heart'/> | ||
); | ||
|
||
const App = (): React.ReactFragment => ( | ||
<React.Fragment> | ||
<IconRegistry icons={EvaIconsPack}/> | ||
<ApplicationProvider mapping={mapping} theme={theme}> | ||
<Layout style={styles.container}> | ||
<Text style={styles.text} category='h1'> | ||
Welcome to UI Kitten 😻 | ||
</Text> | ||
<Text style={styles.text} category='s1'> | ||
Start with editing App.js to configure your App | ||
</Text> | ||
<Text style={styles.text} appearance='hint'> | ||
For example, try changing theme to Dark by simply changing an import | ||
</Text> | ||
<Button style={styles.likeButton} icon={HeartIcon}> | ||
LIKE | ||
</Button> | ||
</Layout> | ||
</ApplicationProvider> | ||
</React.Fragment> | ||
); | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
text: { | ||
textAlign: 'center', | ||
}, | ||
likeButton: { | ||
marginVertical: 16, | ||
}, | ||
}); | ||
|
||
export default App; |
6 changes: 6 additions & 0 deletions
6
src/templates/template-ui-kitten-typescript/template/_buckconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
[android] | ||
target = Google Inc.:Google APIs:23 | ||
|
||
[maven_repositories] | ||
central = https://repo1.maven.org/maven2 |
4 changes: 4 additions & 0 deletions
4
src/templates/template-ui-kitten-typescript/template/_eslintrc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@react-native-community', | ||
}; |
1 change: 1 addition & 0 deletions
1
src/templates/template-ui-kitten-typescript/template/_gitattributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.pbxproj -text |
63 changes: 63 additions & 0 deletions
63
src/templates/template-ui-kitten-typescript/template/_gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# OSX | ||
# | ||
.DS_Store | ||
|
||
# Xcode | ||
# | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
project.xcworkspace | ||
|
||
# Android/IntelliJ | ||
# | ||
build/ | ||
.idea | ||
.gradle | ||
local.properties | ||
*.iml | ||
|
||
# Visual Studio Code | ||
# | ||
.vscode/ | ||
|
||
# node.js | ||
# | ||
node_modules/ | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# BUCK | ||
buck-out/ | ||
\.buckd/ | ||
*.keystore | ||
|
||
# fastlane | ||
# | ||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the | ||
# screenshots whenever they are needed. | ||
# For more information about the recommended setup visit: | ||
# https://docs.fastlane.tools/best-practices/source-control/ | ||
|
||
*/fastlane/report.xml | ||
*/fastlane/Preview.html | ||
*/fastlane/screenshots | ||
|
||
# Bundle artifact | ||
*.jsbundle | ||
|
||
# CocoaPods | ||
/ios/Pods/ |
6 changes: 6 additions & 0 deletions
6
src/templates/template-ui-kitten-typescript/template/_prettierrc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
bracketSpacing: false, | ||
jsxBracketSameLine: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
}; |
1 change: 1 addition & 0 deletions
1
src/templates/template-ui-kitten-typescript/template/_watchmanconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Oops, something went wrong.