Skip to content

Commit 6ac45e7

Browse files
authored
Merge pull request #224 from apptentive/develop
Release 6.1.0
2 parents 3b4b16c + b65d2be commit 6ac45e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5035
-2039
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This document lets you know what has changed in the React Native module. For cha
55
- [Android Changelog](https://github.com/apptentive/apptentive-android/blob/master/CHANGELOG.md)
66
- [iOS Changelog](https://github.com/apptentive/apptentive-kit-ios/blob/main/CHANGELOG.md)
77

8-
# 2023-02-08 - v6.1.0
8+
# 2023-02-14 - v6.1.0
99

1010
- Apptentive Android SDK: 5.8.4
1111
- Apptentive iOS SDK: 6.1.0

android/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Apptentive_kotlinVersion=1.3.50
1+
Apptentive_kotlinVersion=1.5.20
22
Apptentive_compileSdkVersion=31
33
Apptentive_targetSdkVersion=31

apptentive-react-native.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Pod::Spec.new do |s|
1515

1616
s.source_files = "ios/**/*.{h,m,mm,swift}"
1717

18-
s.dependency 'ApptentiveKit', '~> 6.0.9'
18+
s.dependency 'ApptentiveKit', '~> 6.1.0'
1919
s.dependency "React-Core"
2020
end

example/.bundle/config

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BUNDLE_PATH: "vendor/bundle"
2+
BUNDLE_FORCE_RUBY_PLATFORM: 1

example/.eslintrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native-community',
4+
};

example/.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

example/.prettierrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
bracketSameLine: true,
4+
bracketSpacing: false,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
};

example/.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.6

example/.watchmanconfig

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

example/src/App.tsx example/App.tsx

+64-24
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,40 @@
1-
import * as React from 'react';
1+
/**
2+
* Sample React Native App
3+
* https://github.com/facebook/react-native
4+
*
5+
* @format
6+
*/
27

3-
import { StyleSheet, Button, View, Text, TextInput, Platform } from 'react-native';
4-
import { Apptentive, ApptentiveConfiguration } from 'apptentive-react-native';
8+
import React from 'react';
9+
import type {PropsWithChildren} from 'react';
10+
import {
11+
SafeAreaView,
12+
ScrollView,
13+
StatusBar,
14+
StyleSheet,
15+
Text,
16+
useColorScheme,
17+
View,
18+
TextInput,
19+
Button
20+
} from 'react-native';
521

6-
interface State {
7-
eventName: string;
8-
}
22+
import {
23+
Colors,
24+
DebugInstructions,
25+
Header,
26+
LearnMoreLinks,
27+
ReloadInstructions,
28+
} from 'react-native/Libraries/NewAppScreen';
29+
30+
import {
31+
Apptentive,
32+
ApptentiveConfiguration
33+
} from 'apptentive-react-native'
34+
35+
type SectionProps = PropsWithChildren<{
36+
title: string;
37+
}>;
938

1039
// Set your Apptentive Dashboard Credentials
1140
const credentials = Platform.select({
@@ -68,10 +97,20 @@ export class App extends React.Component<{}, State> {
6897
}
6998

7099
render() {
100+
const backgroundStyle = {
101+
backgroundColor: Colors.lighter,
102+
};
103+
71104
return (
72-
<View style={styles.root}>
73-
<View style={styles.container}>
74-
105+
<SafeAreaView style={backgroundStyle}>
106+
<StatusBar
107+
barStyle={'dark-content'}
108+
backgroundColor={backgroundStyle.backgroundColor}
109+
/>
110+
<ScrollView
111+
contentInsetAdjustmentBehavior="automatic"
112+
style={backgroundStyle}>
113+
<Header />
75114
{/* Test Events */}
76115
<View style={[styles.container, { flexDirection: "row" }]}>
77116
<TextInput
@@ -296,28 +335,29 @@ export class App extends React.Component<{}, State> {
296335
title="Type-Specific Custom Data"
297336
/>
298337
</View>
299-
300-
</View>
301-
</View>
338+
</ScrollView>
339+
</SafeAreaView>
302340
);
303341
}
304342
}
305343

306344
const styles = StyleSheet.create({
307-
root: {
308-
alignItems: 'center',
309-
alignSelf: 'center'
345+
sectionContainer: {
346+
marginTop: 32,
347+
paddingHorizontal: 24,
310348
},
311-
container: {
312-
flex: 1,
313-
alignItems: 'center',
314-
justifyContent: 'center',
349+
sectionTitle: {
350+
fontSize: 24,
351+
fontWeight: '600',
352+
},
353+
sectionDescription: {
354+
marginTop: 8,
355+
fontSize: 18,
356+
fontWeight: '400',
357+
},
358+
highlight: {
359+
fontWeight: '700',
315360
},
316-
textinput: {
317-
flex: 3,
318-
height: 40,
319-
backgroundColor: 'floralwhite',
320-
}
321361
});
322362

323363
export default App;

example/Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4+
ruby File.read(File.join(__dir__, '.ruby-version')).strip
5+
6+
gem 'cocoapods', '~> 1.11', '>= 1.11.3'

example/__tests__/App-test.tsx

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @format
3+
*/
4+
5+
import 'react-native';
6+
import React from 'react';
7+
import App from '../App';
8+
9+
// Note: test renderer must be required after react-native.
10+
import renderer from 'react-test-renderer';
11+
12+
it('renders correctly', () => {
13+
renderer.create(<App />);
14+
});

0 commit comments

Comments
 (0)