Commit 324eb017 authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

get color details

parent ef37793c
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<excludeFolder url="file://$MODULE_DIR$/venv" /> <excludeFolder url="file://$MODULE_DIR$/venv" />
<excludeFolder url="file://$MODULE_DIR$/API/venv" /> <excludeFolder url="file://$MODULE_DIR$/API/venv" />
</content> </content>
<orderEntry type="jdk" jdkName="Python 3.9" jdkType="Python SDK" /> <orderEntry type="jdk" jdkName="Python 3.9 (21_22j-38)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
</module> </module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (21_22j-38)" project-jdk-type="Python SDK" />
</project> </project>
\ No newline at end of file
This diff is collapsed.
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"@react-navigation/drawer": "^6.1.8", "@react-navigation/drawer": "^6.1.8",
"@react-navigation/native": "^6.0.6", "@react-navigation/native": "^6.0.6",
"@react-navigation/native-stack": "^6.2.5", "@react-navigation/native-stack": "^6.2.5",
"axios": "^0.24.0",
"native-base": "^3.2.2", "native-base": "^3.2.2",
"react": "17.0.2", "react": "17.0.2",
"react-native": "0.66.2", "react-native": "0.66.2",
......
import { useNavigation } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/native";
import React from "react"; import axios from "axios";
import { StyleSheet, View, Text, Pressable, SafeAreaView, ScrollView, Image, ImageBackground, Dimensions, Animated, Easing } from 'react-native'; import React, {useState, useEffect} from "react";
import { StyleSheet, View, Text, Pressable, SafeAreaView, ScrollView, Image, ImageBackground, Dimensions, Animated, Easing, NativeModules } from 'react-native';
import ImageButton from "../component/ImageButton"; import ImageButton from "../component/ImageButton";
import ColorActivity from "../component/colorActivity"; import ColorActivity from "../component/colorActivity";
// const {width,height} = Dimensions.get('screen'); // const {width,height} = Dimensions.get('screen');
const webUrel = "http://192.168.8.101:5000/ru";
export default function Color(){ export default function Color(){
const[names,setNames] = useState([]);
const navigation = useNavigation(); const navigation = useNavigation();
function getSMSReport() {
axios
.get(webUrel)
.then((response) => {
console.log("response.data");
setNames(response.data)
})
.catch((err) => {
console.log(err);
});
}
useEffect(() =>{
getSMSReport();
})
return ( return (
<SafeAreaView> <SafeAreaView>
...@@ -24,7 +47,7 @@ export default function Color(){ ...@@ -24,7 +47,7 @@ export default function Color(){
</View> </View>
</View> </View>
<ColorActivity> {/* <ColorActivity>
</ColorActivity> </ColorActivity>
...@@ -42,7 +65,7 @@ export default function Color(){ ...@@ -42,7 +65,7 @@ export default function Color(){
<ColorActivity> <ColorActivity>
</ColorActivity> </ColorActivity> */}
</ScrollView> </ScrollView>
</SafeAreaView> </SafeAreaView>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment