Commit a536c72c authored by santhosh's avatar santhosh
Browse files

Initial commit

parents
Pipeline #749 failed with stages
Showing with 266 additions and 0 deletions
+266 -0
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import <React/RCTLog.h>
#import <React/RCTRootView.h>
#define TIMEOUT_SECONDS 600
#define TEXT_TO_LOOK_FOR @"Welcome to React"
@interface AgileTests : XCTestCase
@end
@implementation AgileTests
- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
{
if (test(view)) {
return YES;
}
for (UIView *subview in [view subviews]) {
if ([self findSubviewInView:subview matching:test]) {
return YES;
}
}
return NO;
}
- (void)testRendersWelcomeScreen
{
UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
BOOL foundElement = NO;
__block NSString *redboxError = nil;
#ifdef DEBUG
RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
if (level >= RCTLogLevelError) {
redboxError = message;
}
});
#endif
while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
[[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
[[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
return YES;
}
return NO;
}];
}
#ifdef DEBUG
RCTSetLogFunction(RCTDefaultLogFunction);
#endif
XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
}
@end
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'Agile' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'RNSVG', :path => '../node_modules/react-native-svg'
pod 'react-native-onesignal', :path => '../node_modules/react-native-onesignal'
target 'AgileTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
target 'Agile-tvOS' do
# Pods for Agile-tvOS
target 'Agile-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @format
*/
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
};
This diff is collapsed.
{
"name": "Agile",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-community/async-storage": "^1.12.1",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/netinfo": "^5.9.10",
"@ubaids/react-native-material-textfield": "^0.16.3",
"accordion-collapse-react-native": "^0.4.0",
"jwt-decode": "^3.1.2",
"native-base": "^2.15.2",
"radio-buttons-react-native": "^1.0.4",
"react": "16.13.1",
"react-native": "0.63.4",
"react-native-chart-kit": "^6.11.0",
"react-native-communications": "^2.2.1",
"react-native-custom-dropdown": "^1.0.1",
"react-native-datepicker": "^1.7.2",
"react-native-device-info": "^8.0.1",
"react-native-dropdown-menu": "^2.0.0",
"react-native-dropdown-picker": "^4.0.4",
"react-native-gesture-handler": "^1.9.0",
"react-native-indicators": "^0.17.0",
"react-native-keyboard-aware-scroll-view": "^0.9.3",
"react-native-material-textfield": "git+https://github.com/javarahulsharma/react-native-material-textfield.git",
"react-native-modal-selector": "^2.0.3",
"react-native-onesignal": "^4.1.1",
"react-native-paper": "^4.7.1",
"react-native-picker-select": "^8.0.4",
"react-native-progress": "^4.1.2",
"react-native-pure-chart": "^0.0.24",
"react-native-radio-button-group": "^1.0.3",
"react-native-reanimated": "^1.13.2",
"react-native-responsive-screen": "^1.4.2",
"react-native-safe-area-context": "^3.1.9",
"react-native-screens": "^2.17.1",
"react-native-searchable-dropdown": "^1.1.3",
"react-native-simple-modal": "^9.0.1",
"react-native-simple-toast": "^1.1.3",
"react-native-snackbar": "^2.3.2",
"react-native-sqlite-storage": "^5.0.0",
"react-native-svg": "^12.1.1",
"react-native-svg-charts": "^5.4.0",
"react-native-swipe-list-view": "^3.2.6",
"react-native-vector-icons": "^8.0.0",
"react-native-whc-toast": "^1.0.0",
"react-navigation": "^4.4.3",
"react-navigation-drawer": "^2.6.0",
"react-navigation-stack": "^2.10.2",
"react-navigation-tabs": "^2.11.0",
"sharingan-rn-modal-dropdown": "^1.3.0"
},
"devDependencies": {
"@babel/core": "^7.12.13",
"@babel/runtime": "^7.12.13",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.6.3",
"eslint": "^7.19.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.65.0",
"react-test-renderer": "16.13.1"
},
"jest": {
"preset": "react-native"
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
FileName:AdminManageProjects.js
Version:1.0.0
Purpose:dashboard for Projects ,Here shows the list of projects
Devloper:Rishitha,Mahesh
*/
import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View, StatusBar, Dimensions } from 'react-native';
import { Icon, Title, Button, Container, Content, Header, Right, Left, Body, Tab, Tabs, TabHeading, Footer, Item, Input, FooterTab, Subtitle } from 'native-base';
import Aproved1 from '../AdminComponets/AdminApprovedProjects ';
import Requested1 from '../AdminComponets/AdminRequestedProjects';
import {MANAGEPROJECTS,REQUESTED,APPROVED} from '../CommonComponents/Header'
export default class ManageProjects1 extends Component {
render() {
return (
<Container>
<Header
androidStatusBarColor="#00A2C1"
style={{
backgroundColor: '#00A2C1',
height: 60,
width: Dimensions.get('window').width,
borderBottomColor: '#ffffff',
justifyContent: 'space-between',
}}>
<Icon name="md-menu" size={25} style={{ color: '#fff', paddingTop: 17 }} onPress={() =>
this.props.navigation.toggleDrawer()} />
<Body style={{ paddingLeft: 30, }}>
<Title style={{ color: '#fff', fontWeight: '600', paddingTop: 17 }}>{MANAGEPROJECTS}</Title>
<Subtitle></Subtitle>
</Body>
</Header>
<Tabs tabBarUnderlineStyle={{ borderBottomWidth: 0 }}>
<Tab heading={<TabHeading style={{ backgroundColor: '#00A2C1' }}><Text style={{ color: '#fff' }}>{REQUESTED}</Text></TabHeading>}>
<Requested1 navigation={this.props.navigation} />
</Tab>
<Tab heading={<TabHeading style={{ backgroundColor: '#00A2C1' }}><Text style={{ color: '#fff' }}>{APPROVED}</Text></TabHeading>}>
<Aproved1 navigation={this.props.navigation} />
</Tab>
</Tabs>
</Container>
);
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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