Skip to content

Commit

Permalink
feat: add testID, fixes #32, fixes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkpatchaa committed Aug 14, 2024
1 parent 90b7e1e commit 4d182ef
Show file tree
Hide file tree
Showing 40 changed files with 213 additions and 2,698 deletions.
29 changes: 22 additions & 7 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
npm-debug.*
web-build/

# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
.DS_Store
*.pem

# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli
# local env files
.env*.local

expo-env.d.ts
# @end expo-cli
# typescript
*.tsbuildinfo
24 changes: 24 additions & 0 deletions example/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
// import { Horse, Heart, Cube } from 'phosphor-react-native';
import Horse from 'phosphor-react-native/src/icons/Horse';

export default function App() {
return (
<View style={styles.container}>
<Horse />
{/* <Heart color="#AE2983" weight="fill" size={32} /> */}
{/* <Cube color="teal" weight="duotone" /> */}
<StatusBar style="auto" />
</View>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
50 changes: 0 additions & 50 deletions example/README.md

This file was deleted.

19 changes: 5 additions & 14 deletions example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"slug": "phosphor-react-native-example",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/images/splash.png",
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
Expand All @@ -17,20 +16,12 @@
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"bundler": "metro",
"output": "static",
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"expo-router"
],
"experiments": {
"typedRoutes": true
"favicon": "./assets/favicon.png"
}
}
}
46 changes: 0 additions & 46 deletions example/app/(tabs)/_layout.tsx

This file was deleted.

102 changes: 0 additions & 102 deletions example/app/(tabs)/explore.tsx

This file was deleted.

52 changes: 0 additions & 52 deletions example/app/(tabs)/icons.tsx

This file was deleted.

Loading

0 comments on commit 4d182ef

Please sign in to comment.