Skip to content

Commit 1fc4fbb

Browse files
authored
Recreate expo app (#1594)
1 parent e9eb81b commit 1fc4fbb

Some content is hidden

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

70 files changed

+106
-2289
lines changed

expoDemo/.babelrc

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

expoDemo/.buckconfig

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

expoDemo/.expo-shared/assets.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
{}
1+
{
2+
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
3+
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
4+
}

expoDemo/.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

expoDemo/.gitignore

Lines changed: 12 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,13 @@
1-
# OSX
2-
#
3-
.DS_Store
4-
5-
# Xcode
6-
#
7-
build/
8-
*.pbxuser
9-
!default.pbxuser
10-
*.mode1v3
11-
!default.mode1v3
12-
*.mode2v3
13-
!default.mode2v3
14-
*.perspectivev3
15-
!default.perspectivev3
16-
xcuserdata
17-
*.xccheckout
18-
*.moved-aside
19-
DerivedData
20-
*.hmap
21-
*.ipa
22-
*.xcuserstate
23-
project.xcworkspace
24-
25-
# Android/IntelliJ
26-
#
27-
build/
28-
.idea
29-
.gradle
30-
local.properties
31-
*.iml
32-
33-
# node.js
34-
#
351
node_modules/
36-
npm-debug.log
37-
yarn-error.log
38-
39-
# BUCK
40-
buck-out/
41-
\.buckd/
42-
*.keystore
43-
44-
# fastlane
45-
#
46-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47-
# screenshots whenever they are needed.
48-
# For more information about the recommended setup visit:
49-
# https://docs.fastlane.tools/best-practices/source-control/
50-
51-
*/fastlane/report.xml
52-
*/fastlane/Preview.html
53-
*/fastlane/screenshots
54-
55-
# Bundle artifact
56-
*.jsbundle
57-
58-
# Expo
59-
.expo
60-
__generated__
61-
web-build
2+
.expo/
3+
npm-debug.*
4+
*.jks
5+
*.p8
6+
*.p12
7+
*.key
8+
*.mobileprovision
9+
*.orig.*
10+
web-build/
11+
12+
# macOS
13+
.DS_Store

expoDemo/App.js

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

expoDemo/App.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import React from 'react';
2+
import {AppRegistry} from 'react-native';
3+
import {map} from 'lodash';
4+
import {NavigationContainer} from '@react-navigation/native';
5+
import {createStackNavigator} from '@react-navigation/stack';
6+
import {screens, loadDemoConfigurations} from 'unicorn-demo-app';
7+
import MainScreen from './MainScreen';
8+
9+
loadDemoConfigurations()
10+
11+
const Stack = createStackNavigator();
12+
13+
import {View, Text} from 'react-native-ui-lib';
14+
15+
// export default function App() {
16+
// return (
17+
// <View flex>
18+
// <MainScreen/>
19+
// </View>
20+
// );
21+
// }
22+
23+
24+
export default function App() {
25+
return (
26+
<NavigationContainer>
27+
<Stack.Navigator initialRouteName="Main">
28+
<Stack.Screen name="Main" component={MainScreen}/>
29+
{map(screens, (screen, key) => {
30+
return <Stack.Screen key={key} name={key.replace('Screen', '')} component={screen}/>;
31+
})}
32+
</Stack.Navigator>
33+
</NavigationContainer>
34+
);
35+
}

expoDemo/MainScreen.js renamed to expoDemo/MainScreen.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {menuStructure} from 'unicorn-demo-app';
55
import _ from 'lodash';
66
import fuzzysearch from 'fuzzysearch';
77

8+
9+
810
const {TextField} = Incubator;
911

1012
const sections = _.map(menuStructure, (section, key) => {

expoDemo/__tests__/App.js

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

expoDemo/android/app/BUCK

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

0 commit comments

Comments
 (0)