Skip to content

Commit

Permalink
Merge pull request #149 from adaptui/upgrade-expo
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik-B-06 authored Aug 31, 2023
2 parents b65eaf6 + e653da2 commit c128f9c
Show file tree
Hide file tree
Showing 101 changed files with 2,269 additions and 5,089 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "14.x"
node-version: "16.x"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "14.x"
node-version: "16.x"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ android/keystores/debug.keystore
.expo/*

# generated by bob
lib/
lib/
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"theme",
"components"
],
"git.branchProtection": ["main"]
"typescript.tsdk": "node_modules/typescript/lib"
}
29 changes: 19 additions & 10 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,38 @@ import React from "react";
import { SafeAreaView, StatusBar } from "react-native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { AdaptUIProvider } from "@adaptui/react-native-tailwind";
import tailwind from "twrnc";

const App = () => {
const AppContainer = () => {
const tailwind = useTheme();

return (
<GestureHandlerRootView style={tailwind.style("flex-1")}>
<SafeAreaView style={tailwind.style(`flex-1 android:mt-[${StatusBar.currentHeight || 0}px]`)}>
<AdaptUIProvider>
// Your App Root here
</AdaptUIProvider>
</SafeAreaView>
<NavigationContainer>
<SafeAreaProvider>
// your app here
</SafeAreaProvider>
</NavigationContainer>
</GestureHandlerRootView>
);
};

const App = () => {
return (
<AdaptUIProvider>
<AppContainer />
</AdaptUIProvider>
);
};

export default App;

```

## Further Instructions

### Fonts Loading (Android)
Our components look well with the Inter font on Android.

Our components look well with the Inter font on Android.

You can pick the fonts from [here](../font-assets/)

Expand All @@ -63,11 +73,10 @@ Haptics is a technology that allows devices to provide tactile feedback to users

In AdaptUI we have enabled the Haptics to all our Tappable components (Button, Tag, Radio, Checkbox and Switch) through [expo-haptics](https://docs.expo.dev/versions/latest/sdk/haptics/).

You will have to install this as a dependency to get your haptics working on our Tappable components.
You will have to install this as a dependency to get your haptics working on our Tappable components.

You can use the haptics through our hook [`useHaptics`](../src//utils//useHaptic.ts)


## Simple Usage

Code below will render an [Avatar](./Avatar.md)
Expand Down
14 changes: 0 additions & 14 deletions example/.expo-shared/README.md

This file was deleted.

1 change: 0 additions & 1 deletion example/.expo-shared/assets.json

This file was deleted.

1 change: 1 addition & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vercel
15 changes: 0 additions & 15 deletions example/android/.gitignore

This file was deleted.

236 changes: 0 additions & 236 deletions example/android/app/build.gradle

This file was deleted.

Binary file removed example/android/app/debug.keystore
Binary file not shown.
14 changes: 0 additions & 14 deletions example/android/app/proguard-rules.pro

This file was deleted.

7 changes: 0 additions & 7 deletions example/android/app/src/debug/AndroidManifest.xml

This file was deleted.

Loading

0 comments on commit c128f9c

Please sign in to comment.