Skip to content

Commit

Permalink
npm installed redux for future refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunaixfox committed Apr 15, 2023
1 parent 29bed6a commit 862d89a
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 68 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"react-native-reanimated": "~2.14.4",
"react-native-safe-area-context": "4.5.0",
"react-native-screens": "~3.20.0",
"react-navigation-stack": "^2.10.4"
"react-navigation-stack": "^2.10.4",
"react-redux": "^8.0.5",
"redux": "^4.2.1"
},
"devDependencies": {
"@babel/core": "^7.20.0"
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ const styles = StyleSheet.create({
});

const HomeScreen = () => {

return (
<View style={styles.container}>
<ScrollView>

<Sensor initial={10} label={'degrees'} />
<Sensor initial={5} label={'Pa'} />
<Sensor initial={0} label={'%'} />
Expand Down
5 changes: 3 additions & 2 deletions src/screens/Home/src/components/mqttfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import {
FlatList,
} from 'react-native';

import { SensorContext } from '../../../../utils/sensorContext';
import { Input, Button} from '@rneui/base';
import AsyncStorage from '@react-native-async-storage/async-storage';
import init from 'react_native_mqtt';
global.Json_data = 0;

init({
size: 10000,
storageBackend: AsyncStorage,
Expand Down Expand Up @@ -109,7 +110,7 @@ class App_2 extends Component {
renderRow = ({ item, index }) => {
idMessage = item.split(':');
console.log('>>>ITEM', item);

return(
<View
style={[
Expand Down

0 comments on commit 862d89a

Please sign in to comment.