Skip to content

Fix Expo demo app #1594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions expoDemo/.babelrc

This file was deleted.

6 changes: 0 additions & 6 deletions expoDemo/.buckconfig

This file was deleted.

5 changes: 4 additions & 1 deletion expoDemo/.expo-shared/assets.json
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{}
{
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
}
1 change: 0 additions & 1 deletion expoDemo/.gitattributes

This file was deleted.

72 changes: 12 additions & 60 deletions expoDemo/.gitignore
Original file line number Diff line number Diff line change
@@ -1,61 +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

# Expo
.expo
__generated__
web-build
.expo/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/

# macOS
.DS_Store
22 changes: 0 additions & 22 deletions expoDemo/App.js

This file was deleted.

35 changes: 35 additions & 0 deletions expoDemo/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react';
import {AppRegistry} from 'react-native';
import {map} from 'lodash';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import {screens, loadDemoConfigurations} from 'unicorn-demo-app';
import MainScreen from './MainScreen';

loadDemoConfigurations()

const Stack = createStackNavigator();

import {View, Text} from 'react-native-ui-lib';

// export default function App() {
// return (
// <View flex>
// <MainScreen/>
// </View>
// );
// }


export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Main">
<Stack.Screen name="Main" component={MainScreen}/>
{map(screens, (screen, key) => {
return <Stack.Screen key={key} name={key.replace('Screen', '')} component={screen}/>;
})}
</Stack.Navigator>
</NavigationContainer>
);
}
2 changes: 2 additions & 0 deletions expoDemo/MainScreen.js → expoDemo/MainScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {menuStructure} from 'unicorn-demo-app';
import _ from 'lodash';
import fuzzysearch from 'fuzzysearch';



const {TextField} = Incubator;

const sections = _.map(menuStructure, (section, key) => {
Expand Down
10 changes: 0 additions & 10 deletions expoDemo/__tests__/App.js

This file was deleted.

65 changes: 0 additions & 65 deletions expoDemo/android/app/BUCK

This file was deleted.

Loading