forked from BilalBudhani/react-native-github-algolia-search
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
26 lines (25 loc) · 753 Bytes
/
App.js
File metadata and controls
26 lines (25 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React from "react";
import { Text, View } from "react-native";
import { InstantSearch } from "react-instantsearch/native";
import styles from "./src/styles";
import SearchBox from "./src/SearchBox";
import Results from "./src/Results";
export default class App extends React.PureComponent {
render() {
return (
<View style={styles.container}>
<Text style={styles.brandTitle}>Github Repository Search</Text>
<InstantSearch
appId="TLCDTR8BIO"
apiKey="686cce2f5dd3c38130b303e1c842c3e3"
indexName="repositories"
>
<View style={styles.searchBoxContainer}>
<SearchBox />
</View>
<Results />
</InstantSearch>
</View>
);
}
}