This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { SafeAreaView, StyleSheet } from "react-native"; | |
| import { NavigationContainer } from "@react-navigation/native"; | |
| import { BottomTabNavigator } from "./src/navigator/tabbar"; | |
| export default function App() { | |
| return ( | |
| <SafeAreaView style={styles.droidSafeArea}> | |
| <NavigationContainer> | |
| <BottomTabNavigator></BottomTabNavigator> | |
| </NavigationContainer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; | |
| import Home from "../../screens/Home"; | |
| import Profile from "../../screens/Profile"; | |
| import ProfileSettings from "../../screens/Settings"; | |
| const Tab = createBottomTabNavigator(); | |
| export const BottomTabNavigator = () => { | |
| return ( | |
| <Tab.Navigator bgColor="white"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { Text, View, StyleSheet } from "react-native"; | |
| function ProfileSettings() { | |
| return ( | |
| <View style={styles.container}> | |
| <Text>Setting</Text> | |
| </View> | |
| ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { Text, View, StyleSheet } from "react-native"; | |
| function Profile() { | |
| return ( | |
| <View style={styles.container}> | |
| <Text>Profile</Text> | |
| </View> | |
| ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { Text, View, StyleSheet, SectionList } from "react-native"; | |
| const DATA = [ | |
| { | |
| title: "Main dishes", | |
| data: ["Pizza", "Burger", "Risotto"], | |
| }, | |
| { | |
| title: "Sides", | |
| data: ["French Fries", "Onion Rings", "Fried Shrimps"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const markers = [ | |
| { | |
| state: "Alaska", | |
| coordinates: [ | |
| 61.3850, | |
| -152.2683 | |
| ] | |
| }, | |
| { | |
| state: "Alabama", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hexToAscii(hexx) { | |
| var hex = hexx.toString(); //force conversion | |
| var str = ""; | |
| for (var i = 0; i < hex.length && hex.substr(i, 2) !== "00"; i += 2) | |
| str += String.fromCharCode(parseInt(hex.substr(i, 2), 16)); | |
| console.log(str); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .swiper { | |
| width: 100%; | |
| height: 100%; | |
| } | |
| .swiper-slide { | |
| text-align: center; | |
| font-size: 18px; | |
| background: none; | |
| display: -webkit-box; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Import Swiper React components | |
| import { Swiper, SwiperSlide } from "swiper/react"; | |
| // Import Swiper styles | |
| import "swiper/css"; | |
| import "swiper/css/navigation"; | |
| import "./style.css"; | |
| // import required modules | |
| import { Autoplay, Navigation } from "swiper"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import gradio as gr | |
| from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline | |
| model = AutoModelForSequenceClassification.from_pretrained("savasy/bert-base-turkish-sentiment-cased") | |
| tokenizer = AutoTokenizer.from_pretrained("savasy/bert-base-turkish-sentiment-cased") | |
| def greet(text): | |
| pipe = pipeline("sentiment-analysis", tokenizer=tokenizer, model=model) | |
| return pipe(text)[0]['label'] | |