45 minutes sprint
Question
Given the triangle of consecutive odd numbers:
1
3 5
7 9 11
Bluemoon Solutions is a software company tasked with working on an inventory management system, this system allows the users to list, add, edit, and delete inventory items. Your task is to create a react native app that utilises the async storage to store, update, retrieve, and delete data.
import React, {useCallback, useEffect, useState} from 'react'; | |
import { | |
ActivityIndicator, | |
Alert, | |
Button, | |
StyleSheet, | |
Text, | |
View, | |
} from 'react-native'; | |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
package com.sendsolid; | |
import com.facebook.react.bridge.Callback; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.bridge.ReactContextBaseJavaModule; | |
import com.facebook.react.bridge.Promise; | |
import com.facebook.react.bridge.ReactMethod; | |
import com.facebook.react.bridge.ReadableMap; | |
import com.facebook.react.bridge.ReadableNativeMap; | |
import com.facebook.react.bridge.WritableMap; |
import CryptoJS, {AES, MD5} from 'crypto-js'; | |
import {ENC_KEY} from '../configs/app.config'; | |
/** | |
* Encrypts any given data | |
* @param {any} data | |
* @return string | null | |
*/ | |
export const encrypto = async ( | |
data: any, |