forked from GeekyAnts/NativeBase-KitchenSink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jacob.phan
committed
Oct 14, 2019
1 parent
ff48e47
commit a4de9d5
Showing
11 changed files
with
2,308 additions
and
3,171 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"0cae4d70c6df3e5e96ee8b5c442b59d55c8ab8deb466992ab9abc523822f2a1b": true, | ||
"e997a5256149a4b76e6bfd6cbf519c5e5a0f1d278a3d8fa1253022b03c90473b": true, | ||
"af683c96e0ffd2cf81287651c9433fa44debc1220ca7cb431fe482747f34a505": true, | ||
"e7fc0741cc6562975a990e3d9ef820571588dab20aba97032df9f00caa9cd57a": true | ||
} |
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,56 +1,13 @@ | ||
# 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 | ||
|
||
# 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 | ||
node_modules/**/* | ||
.expo/* | ||
npm-debug.* | ||
*.jks | ||
*.p8 | ||
*.p12 | ||
*.key | ||
*.mobileprovision | ||
*.orig.* | ||
web-build/ | ||
web-report/ | ||
|
||
/package-lock.json |
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 +1 @@ | ||
{} | ||
{} |
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,29 @@ | ||
import React from 'react'; | ||
import NavigationTestUtils from 'react-navigation/NavigationTestUtils'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import App from '../App'; | ||
|
||
jest.mock('expo', () => ({ | ||
AppLoading: 'AppLoading', | ||
})); | ||
|
||
jest.mock('../navigation/AppNavigator', () => 'AppNavigator'); | ||
|
||
describe('App', () => { | ||
jest.useFakeTimers(); | ||
|
||
beforeEach(() => { | ||
NavigationTestUtils.resetInternalState(); | ||
}); | ||
|
||
it(`renders the loading screen`, () => { | ||
const tree = renderer.create(<App />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
|
||
it(`renders the root without loading screen`, () => { | ||
const tree = renderer.create(<App skipLoadingScreen />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
}); |
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,22 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`App renders the loading screen 1`] = ` | ||
<AppLoading | ||
onError={[Function]} | ||
onFinish={[Function]} | ||
startAsync={[Function]} | ||
/> | ||
`; | ||
|
||
exports[`App renders the root without loading screen 1`] = ` | ||
<View | ||
style={ | ||
Object { | ||
"backgroundColor": "#fff", | ||
"flex": 1, | ||
} | ||
} | ||
> | ||
<AppNavigator /> | ||
</View> | ||
`; |
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,4 +1,35 @@ | ||
{ | ||
"name": "NativebaseKitchenSink", | ||
"displayName": "NativebaseKitchenSink" | ||
} | ||
"expo": { | ||
"name": "Ship Vé Số", | ||
"slug": "ShipVeSo", | ||
"privacy": "public", | ||
"sdkVersion": "35.0.0", | ||
"platforms": [ | ||
"ios", | ||
"android", | ||
"web" | ||
], | ||
"version": "1.0.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/images/icon.png", | ||
"splash": { | ||
"image": "./assets/images/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"updates": { | ||
"fallbackToCacheTimeout": 0 | ||
}, | ||
"assetBundlePatterns": [ | ||
"**/*" | ||
], | ||
"ios": { | ||
"supportsTablet": true | ||
}, | ||
"android": { | ||
"package": "com.jacob.shipveso", | ||
"permissions": ["VIBRATE"], | ||
"versionCode": 2 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 +1,6 @@ | ||
module.exports = { | ||
presets: ["module:metro-react-native-babel-preset"] | ||
} | ||
module.exports = function(api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
}; | ||
}; |
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,47 +1,36 @@ | ||
{ | ||
"name": "NativebaseKitchenSink", | ||
"version": "2.12.0", | ||
"private": true, | ||
"devDependencies": { | ||
"babel-eslint": "7.2.3", | ||
"eslint": "4.4.1", | ||
"eslint-plugin-flowtype": "2.35.0", | ||
"eslint-plugin-import": "2.7.0", | ||
"eslint-plugin-jsx-a11y": "6.0.2", | ||
"eslint-plugin-prettier": "2.1.2", | ||
"eslint-plugin-react": "7.1.0", | ||
"eslint-plugin-react-native": "3.0.1", | ||
"flow-bin": "0.78.0", | ||
"flow-typed": "2.5.1", | ||
"husky": "0.14.3", | ||
"jest": "24.1.0", | ||
"prettier": "1.5.3", | ||
"metro-react-native-babel-preset": "0.52.0", | ||
"react-test-renderer": "16.6.3" | ||
}, | ||
"main": "node_modules/expo/AppEntry.js", | ||
"scripts": { | ||
"start": "react-native start", | ||
"android": "react-native run-android", | ||
"ios": "react-native run-ios" | ||
"start": "expo start", | ||
"android": "expo start --android", | ||
"ios": "expo start --ios", | ||
"web": "expo start --web", | ||
"eject": "expo eject", | ||
"test": "jest --watchAll" | ||
}, | ||
"jest": { | ||
"preset": "react-native", | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!(react-native|lottie-react-native|expo|react-native-maps|react-native-svg|react-native-branch|native-base-shoutem-theme|react-native-easy-grid|react-native-drawer|react-native-vector-icons|react-native-keyboard-aware-scroll-view|react-native-swiper|react-navigation|native-base|@expo|react-native-scrollable-tab-view|react-native-simple-modal|react-native-iphone-x-helper)/)" | ||
] | ||
"preset": "jest-expo" | ||
}, | ||
"dependencies": { | ||
"color": "1.0.3", | ||
"lodash": "4.17.10", | ||
"moment": "2.13.0", | ||
"native-base": "2.12.1", | ||
"prop-types": "^15.6.2", | ||
"react": "16.6.3", | ||
"react-native": "0.58.5", | ||
"react-native-gesture-handler": "^1.0.15", | ||
"react-native-vector-icons": "^6.3.0", | ||
"react-navigation": "3.3.0", | ||
"scheduler": "^0.12.0", | ||
"styled-components": "^3.4.5" | ||
} | ||
} | ||
"@expo/samples": "~3.0.3", | ||
"@expo/vector-icons": "^10.0.3", | ||
"@react-navigation/web": "^1.0.0-alpha.9", | ||
"expo": "^35.0.0", | ||
"expo-asset": "^7.0.0", | ||
"expo-constants": "^7.0.0", | ||
"expo-font": "~7.0.0", | ||
"expo-web-browser": "^7.0.0", | ||
"native-base": "^2.13.8", | ||
"react": "16.8.3", | ||
"react-dom": "16.8.3", | ||
"react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz", | ||
"react-native-gesture-handler": "~1.3.0", | ||
"react-native-web": "^0.11.7", | ||
"react-navigation": "^3.12.0" | ||
}, | ||
"devDependencies": { | ||
"babel-preset-expo": "^7.0.0", | ||
"jest-expo": "^35.0.0" | ||
}, | ||
"private": true | ||
} |
Oops, something went wrong.